Posts tagged Wordpress
Something else I missed when looking at themes for my new blog was post template options.
Seems as though the Twenty Eleven theme won’t display the sidebar when viewing a post/article.
Thankfully, it’s not a huge modification and there is lot’s out there on how to do it.
Basically, you modify the theme’s single.php file and add the get_sidebar() function. But that in itself will not be enough, you need to adjust some CSS as well.
I had tried with just the get_sidebar() modification… but after a quick search I found an example.
Check out Zeaks “ADD SIDEBAR TO POST VIEW IN TWENTY ELEVEN THEME” for an example on how to modify the CSS to make this work.
I used it as a reference and it worked great.
I’m setting up a new personal blog and settled on using WordPress’s Twenty Eleven theme that ships with current downloads.
I wanted to create custom banners to be displayed in the “Header” settings under the “Appearance” menu.
I thought they could be uploaded, this was something I simply presumed and didn’t actually check. I had seen the options to display a random header but hadn’t actually tried it… or read everything for that matter… 😉
There aren’t any uploaders. If you do upload a custom banner it is set as the banner for all pages.
The work around was quite easy, if you can follow PHP code of course.
First, create the banners you want to have on the blog, at appropriate sizes of course (defaults are 1000 × 288 pixels for the banners on the Twenty Eleven Theme out of the box). Then, your thumbnails (230×66 pixles, less important as it’s for the admin panel)…. then go into the theme’s image folder (unless you want to change those settings, but we won’t get into that here). Theme folder should be in:
Upload your banners and thumbnail images.
Once that is there, you must open the theme’s functions.php file (in twentyeleven’s root folder). In there, find the register_default_headers() function. You’ll want to configure your custom banners in the arrays as such:
register_default_headers( array( 'every-man-lives' => array( 'url' => '%s/images/headers/first-banner.jpg', 'thumbnail_url' => '%s/images/headers/first-banner-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Banner 1', 'twentyeleven' ) ), 'love-dies' => array( 'url' => '%s/images/headers/second-banner.jpg', 'thumbnail_url' => '%s/images/headers/second-banner-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Banner 2', 'twentyeleven' ) ) ) );
Once you’ve registered the new banners, refresh the admin panel Header or Custom Header page and check out the public site.
Was nice and simple.
Seems like Smart Phones and mobile apps have changed everything.
I pretty much do everything on my smart phone now. Email, banking, Twitter… I don’t do much YouTube unless I’m at home on my network… 🙂
I’ve recently discovered WordPress’s Android App and figured I should really try it out.
So as I sit watching my daughter’s soccer practice in a grassy field, I can now write a short blog article on my HTC Incredible S.
This might come in handy when I’m on the road.
What will come about next??? Who knows.
Recently I’ve been working on a couple of ideas for a WordPress plugin and since it’s something I haven’t done yet, meaning writing a plugin from scratch, I thought I’d do a little research. I’m familiar with Hooks and how filters and actions work…. but I figured a little research would be wise.
Research is always wise. 😉
Found this video and thought I’d share. This is from 2009 but much of what’s discussed is relevant.
I’ve had my head in quite a few WordPress based sites as of late. Something I’ve had to do on our development space is setup new WP installs to clear out the settings.
Today, I found “WordPress Reset“, a handy little plugin that allows to wipe out WP content to defaults. If you’ve got multiple themes setup, don’t need to worry…. it doesn’t touch the files at all. It just resets the WP database.
It also saves your admin account.
Check it out.
I’ve recently developped a few sites based on WordPress and have done a bit of training with users on how to administer their websites. Like editing their texts, images, categories, tagging….etc.
So I’ve been thinking about developing a half visual document for them. Something that would contain the generic “Post, Page, Category, Media”…etc. Along with some documentation on installed plugins or theme options which would be a bit different depending on the site.
This morning while doing a quick Google Search, I came across what appears to be a VERY well done WordPress guide and thought I would share.
Recently I’ve had my nose in WordPress alot. Kind of gotten to be quite fond of it actually.
Was putting a site together that required something a little more special then your usual blog. This was to become more of a CMS then a blog.
Pages, sub pages, blog section, news section….etc.
Multiple user accounts that needed to access only certain pages and sub pages…. and also some users that would post news, some to blog categories and/or blog sub categories.