WordPress.org

Ready to get started?Download WordPress

Forums

Fixing Layout the "Proper" Way (5 posts)

  1. Mystagogue
    Member
    Posted 3 years ago #

    I fixed a formatting problem by adjusting "template" files within a plugin I installed, instead of adjusting the theme I installed. I feel that was backwards, so I'd like to know how to leave the plugin unmodified, and fix the theme instead.

    To be specific, I combined the "Eximius" 3-column theme with the "Now Reading Reloaded" plugin. Links I selected from the "Now Reading" sidebar caused my site to experience a format bad-hair-day. So I fixed the problem by finding plugin code that looked like this:

    <div id="content" class="narrowcolumn primary now-reading">...</div>
    <?php get_sidebar(); ?>

    And replaced it with this:

    <?php include (TEMPLATEPATH . '/sidebarLeft.php'); ?>
    <div id="content" class="narrowcolumn primary now-reading">...</div>

    These changes entirely solved the problem. But I want to solve it correctly. What should I have done to the Eximius theme to accomplish the same result?

    p.s. In 2002-2003, I worked extensively with CSS though now I am very rusty.

  2. moggiex
    Member
    Posted 3 years ago #

    Actually this can be easily solved by changing:

    <div class="content">
    	<div id="content" class="now-reading primary narrowcolumn">
    	<div class="post">

    to:

    <div id="container">
    	<div id="content" role="main">
    	<div class="post">

    At the top of each of the template files.

    Also below is a better way of showing the items in the sidebar, replace the contents of sidebar.php in the templates folder with this and refresh:

    Code here: http://wordpress.pastebin.com/nQP3fYQ7

    Enjoy, Matt

  3. Mystagogue
    Member
    Posted 3 years ago #

    Switching the plugin attributes, as suggested, did not work. It was as if I hadn't changed anything.

    Also, I tried replacing sidebar.php with the linked material, and that also did not fix the formatting. However, the new sidebar.php did cause my "planned books" and "recent books" to show images, which they did not before. That can be a good or bad thing, depending on what is intended. I will certainly keep that if I need it.

    So I'm still left wondering if there is a way to fix this by adjusting the theme instead of the plugin. So far I think the answer is no. Thoughts?

  4. moggiex
    Member
    Posted 3 years ago #

    Thoughts?

    Yes, I'm half way through reworking the templates and css currently

    Matt

  5. tristrella
    Member
    Posted 3 years ago #

    Hi Can you check this site why it doesn't display well I guess?

    http://birthrightnow.com/library/

    notice how the sidebar goes at the bottom. Please help...

Topic Closed

This topic has been closed to new replies.

About this Topic