nanolog : WordPress Theme – Custom Width for a Post or Page

Problem

The width of WordPress theme was less. Wanted to extend it for a specific page used for displaying a mindmap with Freemind wordpress plugin.

Solution

  • Install “Custom Post Templates” plugin which allows you to choose/select a specific template for your post.
  • Copied #main style into #mainwide and changed the width. In terms of the PHP the change is done in header PHP
  • removed get_sidebar() function from pagewide.php (copied version of page.php) in order to use more space of the page
  • Freemind plugin defines the height of Mindmap. Increased it to fit

References

  1. http://wordpress.org/extend/plugins/custom-post-template/
  2. http://wordpress.org/support/topic/a-plugin-that-will-remove-a-sidebar-from-a-page-on-my-site
  3. http://codex.wordpress.org/Function_Reference/get_header
  4. http://codex.wordpress.org/Function_Reference/the_content
  5. http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
  6. http://millionclues.com/problogging/wordpress-tips/make-full-width-page-in-wordpress/

ShriKant Vashishtha is an enterprise Agile Coach, IT strategist, trainer, thinker and hands-on geek. He is passionate towards enterprise Agile transformation, quality aspect of software development including TDD, refactoring, Continuous Delivery, DevOps and Test Automation. He can be reached at vashishtha_sk@yahoo.com.

Posted in nanolog, Usability, wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *

*

CommentLuv badge

Welcome to Sampreshan
Technology Strategist, Speaker, Scrum/XP/Agile Trainer Coach and Trainer
Your interest areas
Follow

Get every new post on this blog delivered to your Inbox.

Join other followers: