Different layouts for admins and visitors

Viewing 10 posts - 1 through 10 (of 10 total)
  • #19607
    Peter_R
    Participant

    I like pinboard theme.
    I changed recently the layout from left sidebar to right sidebar.
    I changed also some colors.
    The background color is configured as #b6d6a9.

    Since then:
    different layouts for admin and visitors are shown.
    The new layout is shown for all posts when logged in.
    As visitor, the old layout is mostly shown.
    Newer posts are not shown at all.
    Some posts show a mix of both layouts (color new, sidebar old)
    Many links wont work anymore, when not logged in.
    Background color shown is not configured (white).

    old layout: http://diskussion.theoriedesseins.de/category/das-problem/
    new layout: http://diskussion.theoriedesseins.de/2012/05/12/erlebnisentitat-kompakt/

    What could I have mistaken?

    I use reversed order of posts to create a book like layout.
    I manually change the creation date to define the order of posts.
    I use permalinks with year/month/day.
    I have changed the total width of content.

    Many thanks for any help!

    #19609
    Daniel Tara
    Keymaster

    Sounds like a caching issue. Are you using W3 Total Cache or WP Super Cache? If so clear the cache and see if it still happens.

    #19614
    Peter_R
    Participant

    Hi Daniel,

    a chaching problem was also my first thought. I am using Wp Supercache. Clearing the cache of Wp and also clearing the cach of my webbrowser did not help.

    #19615
    Daniel Tara
    Keymaster

    On a closer look the only piece of code missing from the old layout appears to be this:

    #wrapper {
    	position:relative;
    	max-width:1400px;
    	margin:0 auto;
    	box-shadow:0 0 18px rgba(0, 0, 0, .4);
    	background:#f8f8f8;
    	overflow:hidden;
    }

    It appears like you’re adding it to the custom CSS in Theme Options, am I correct? Did you apply any modifications to the way custom CSS is outputted? Is that code added through a plugin or something?

    #19616
    Peter_R
    Participant

    You are perfectly right. I added this code to custom css. I am no specialist in CSS, I got this codefrom a relevant blog. I recently added plugin Page Builder by SiteOrigin which I used for some pages.

    #19617
    Daniel Tara
    Keymaster

    Nothing inside the theme’s code is preventing the custom CSS from displaying on all pages. Did you make any modifications to the pinboard_custom_styles() function?

    #19825
    Peter_R
    Participant

    Hi Daniel, thanks for your support.
    I do not know where this function exists.
    According to the date of pinboard file, I made changes only to:
    – functions.php: I changed to:
    function pinboard_excerpt_more($more) {
    return ‘ ID) . ‘ “> …weiterlesen‘;
    }
    endif;
    I changed also:
    <hgroup id=”current-location”>
    <h6 class=”prefix-text”><?php _e( ‘Sie sehen das Kapitel ‘, ‘pinboard’ ); ?> </h6>

    – single.php
    I removed: <?php pinboard_entry_meta(); ?>
    I added twice, top and bottom:
    <div class=”navigation” style=”padding-top: 15px; padding-bottom: 10px;”>
    <div style=”float: left;”><?php previous_post_link(‘« %link’) ?></div>
    <div style=”float: right;”><?php next_post_link(‘%link »’) ?></div>
    </div>
    I added:
    <?php $u_time = get_the_time(‘U’);
    $u_modified_time = get_the_modified_time(‘U’);
    if ($u_modified_time != $u_time) {
    echo “Letzter Stand: “;
    the_modified_time(‘F Y’);
    echo “. “; } ?>

    – sidebar-top.php, index.php: I dont know, if I changed them.

    Could it be a WordPress problem. The reason, I am asking is: I am designing a different wordpress installation. I played around with different themes. After a while, I experienced a similar problem: The menu shown was different for admins and visitors.

    Can I change anything in database to solve the problem?

    #19827
    Daniel Tara
    Keymaster

    I’m going back to my initial idea and dare to say it’s a caching problem. Caching plugins use very complex algorithms and occasionally they fall into a loophole and just stop working properly. In situations like this actions like clearing cache and deactivating the plugin don’t work as expected. Since the problem is more than one week old and caching plugins usually clean their cache at least once a week I believe it’s stuck somewhere and serving stalled content.

    I never used WP Super Cache but I know that W3 Total Cache installs some drop-in scripts that reside outside the plugin and keep working even if you delete the plugin. It happened to me several times that I needed to manually delete those drop-ins and the disk cache and even reboot the server. Usually that happened when updating WordPress and updating the database was stuck in an infinite loop.

    I suggest you search all files that the caching plugin created and delete them. Then if you have the possibility I recommend to reboot the server. I also recommend you install a database maintenance plugin and check your database for any errors and perform a cleanup. You can try any of these:

    #19828
    Peter_R
    Participant

    Hello Daniel,

    I experienced a new behaviour when browsed as a visitor on a page which shows the right color and left sidebar and 4 colums setup. The page starts OK. But when scrolling down on a category page. The setup seems to change to 3 or 2 colums and the colum size and changes the width.

    I have some screenshots, but I do not know how to insert here.

    When I log in as a an administrator, everything shows fine.

    #19829
    Peter_R
    Participant

    Hi Daniel,

    you are right. The WP Super Cache was the problem. I removed it and the problem was gone. I am going to use W3 total cache.

    Thanks for your great help. Wish you all the best.

Viewing 10 posts - 1 through 10 (of 10 total)

Tagged: 

You must be logged in to reply to this topic.