• I’m using a theme called Popmusic.

    It has a left and right sidebar. But only one sidebar.php. Sidebar.php has everything that is in the Left sidebar but nothing in the right sidebar.

    I want to make changes to the right sidebar but can’t find the code that is governing the right sidebar.

    The standard right side bar for this theme has Categories and Blogroll showing… even though those widgets are not activated for either sidebar in the widget menu.

    I’ve searched (using Dreamweaver) through every single file in the theme directory and the wordpress directory for any wording that is putting the blogroll (get_links) into that sidebar. I just can’t find any template anywhere in my install that is creating the right sidebar at all.

    Anybody got any help or suggestions for where to find this bugger???

Viewing 9 replies - 1 through 9 (of 9 total)
  • You need to post a link to your site so someone can see the code.

    Thread Starter creativepart

    (@creativepart)

    Ok, thanks,

    tiftcountyclassof68.com

    I keep looking and just can’t find any template that creates the right sidebar. It’s gotta be there!

    Maybe because the wright template tag is wp_list_bookmarks?

    Thread Starter creativepart

    (@creativepart)

    Here’s the content of my sidebar.php — this is all there is:

    <div class="sidebar">
    		    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
                          <?php endif; ?>
    
    			<h3>Pages</h3>
    			<ul>
    				<?php wp_list_pages('title_li='); ?>
    			</ul>
    
    			<h3>Archives</h3>
    			<ul>
    				<?php wp_get_archives('type=monthly'); ?>
    			</ul>
    
    		</div>
    		<!-- Sidebar -->

    And there is only one sidebar.php and I can’t find similar coding in any other template.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    I hate encoded themes. And that one was, by far, the most annoying one I’ve ever seen.

    I found and downloaded a copy of the theme. In the footer.php, there’s a thing that starts with eval(gzinflate(str_rot13(base64_decode and so on, then a big piece of ugly text.

    The right sidebar is hidden inside that big ugly text. I had to write a simple decoder for it, but here’s the replacement:
    https://wordpress.pastebin.com/f74d33fa7

    Copy everything in there and replace the entire contents of the footer.php with it.

    For anybody interested, here’s the quick snippet I wrote to decode the thing:

    $string = gzinflate(str_rot13(base64_decode(BIG UGLY STRING HERE)));
    for ($x=0;$x<41;$x++) {  // had to loop 41 times to make it finish and give up the html
    $string = str_replace('eval','echo', $string);
    ob_start();
    eval($string);
    $string = ob_get_clean();
    echo $x. $string."\n";
    }

    Thread Starter creativepart

    (@creativepart)

    When running a custom theme do the “default” theme templates have anything to do with the layout of of the page?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    They can, depending on what the theme contains.

    But generally speaking, a theme stands alone. Still, you should always leave the default theme there, just in case.

    Thread Starter creativepart

    (@creativepart)

    WooHoo Otto42!

    Thank you thank you.

    I wondered what that stuff was in the footer.

    I expected the missing sidebar code to be in the header or footer, but when I looked at the footer and saw all that gobbledygook I didn’t know what to make of it.

    Thank you again!!

    I replaced the code with your code and the page displays normally. Now, I can make my edits!!

    While you’re at it, go ahead and delete all of the spam links in your footer.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Can’t find template to edit for the Right Sidebar’ is closed to new replies.