• Mystagogue

    (@mystagogue)


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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: https://wordpress.pastebin.com/nQP3fYQ7

    Enjoy, Matt

    Thread Starter Mystagogue

    (@mystagogue)

    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?

    Thoughts?

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

    Matt

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

    https://birthrightnow.com/library/

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fixing Layout the "Proper" Way’ is closed to new replies.