• So i’m a bit bummed out about this ??
    I have literally changed nothing, yet my sidebar and background have disappeared all of a sudden when you click on an individual article.

    I have searched this forum and googled to death and can’t come up with anything (i thought maybe it was an update that caused this?)

    My blog is: https://differentwatch.com/blog/
    If you click on any of the articles you will see the background and sidebar just vanish. Can anyone shed any light on this at all please – it’s driving me nuts!!

    Thanks

    Ralex

Viewing 5 replies - 1 through 5 (of 5 total)
  • the single post shows an error message related to ‘yarpp’:

    Fatal error: Call to undefined function yarpp_sql() in /home/differen/public_html/wp-content/themes/webagencywp/webagencywp/single.php on line 78

    maybe the plugin is missing/not activated/broken ?

    Thread Starter ralexander

    (@ralexander)

    Hi alchymyth – thanks for replying.

    The YARPP problem is unrelated and as i understand it and recently stopped working following the update to that plug-in (the theme author should not have called ‘yarpp_sql’ directly but rather ‘related_posts()’ which is causing the error.

    Back on topic if anyone else can assist with the sidebar/ background problem please!? Would massively appreciate it

    Thread Starter ralexander

    (@ralexander)

    Ok so it turns out that it is YARPP causing this problem.

    It’s weird because i disabled the plug-in and still no sidebar or back ground. Yet when i deleted this chunk of code from single.php:

    <h2>Related Posts</h2>
                      <div class="clr"></div>
                      <?php
    					$results = $wpdb->get_results(yarpp_sql(array('post'),array()));
    					foreach ( (array) $results as $_post ) :
    					$_post = get_post($_post->ID);  ?>
                      <div class="th fl"><a href="<?php echo get_permalink($_post->ID); ?>"><img src="<?php echo get_post_meta($_post->ID, 'post-img', true); ?>" alt="" /></a></div>
                      <div><a href="<?php echo get_permalink($_post->ID); ?>"><?php echo $_post->post_title; ?></a></div>
                      <div class="hlr"></div>
                      <?php endforeach; ?>
                    </div>

    The sidebar and background appeared again but side bar now appears in the center column under the post?

    you might have deleted a </div> to much (?)

    Thread Starter ralexander

    (@ralexander)

    Hi Alchymyth, thanks for trying to help me again – to be clear i do not want to have to delete all the template code relating to YARPP and remove that functionality from my blog – i was experimenting above to try and find the cause of the issue.

    To delete all the YARPP code at this point would be kind of like chopping of a whole arm because one of your fingers isn’t working (that was a strange analogy, not sure where that came from!)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘What happened!? Sidebar & background disappeared – no reason??’ is closed to new replies.