WordPress.org

Support

Support » Themes and Templates » “XXXXXXXX” in my side bar?

“XXXXXXXX” in my side bar?

  • I changed my side bar php page, and added in Adsence and put in XXXXXXXX to check it would appear in the correct place. I then removed the XXXXXXXX from the file, but it is still there is the side bar?

    Can somebody please help me get rid of the XXXXXXXX?

    http://www.weekendukbreaks.com

    many thanks

Viewing 13 replies - 1 through 13 (of 13 total)
  • Paste your sidebar code here if it’s short, or use pastebin and give me the link so that I can take a look.

    It’s still in the sidebar as I can see the XXXXXXX

    <?php

    global $options;

    foreach ($options as $value) {

    if (get_settings( $value[‘id’] ) === FALSE) { $$value[‘id’] = $value[‘std’]; } else { $$value[‘id’] = get_settings( $value[‘id’] ); } }

    ?>

    <?php if ($ata_rightcolumn_width != 0) { ?>

    <?php # from here up to line 106 the contents are “hardcoded” into the theme and won’t dissapear

    # even after you dropped widgets into this right sidebar. If you want to change this first,

    # upper part of the right sidebar, you’ll need to do it manually. ?>

    <?php if (is_home() OR is_category() OR is_single()) { ?>

    test2

    <?php if (is_home()) { ?>

    test3

    <?php if (function_exists(‘mdv_most_commented’)) { ?>

    <h3 class=”widgettitle”>Popular Posts</h3>

      <?php # The first number (10) is max amount of posts displayed,

      # the last number (365) is how old (days) posts can be to be included here.

      # Don’t change the other parts. Salt to taste:

      mdv_most_commented(10, ‘

    • ‘, ‘
    • ‘, false, 365); ?>

    <?php } ?>

    <?php if (function_exists(‘src_simple_recent_comments’)) { ?>

    <h3 class=”widgettitle”>Recent Comments</h3>

      <?php src_simple_recent_comments(); ?>

    <?php } ?>

    <?php } ?>

    <?php if (is_category()) { ?>

    <?php if (function_exists(‘mdv_most_commented_per_cat’)) { ?>

    <?php $current_cat_id = get_query_var(‘cat’);

    # The first number (10) is max # of posts displayed,

    # the last number (365) is how old (days) posts can be to be included here.

    # Don’t change the other parts. Salt to taste:

    $popular_in_this_cat = mdv_most_commented_per_cat(10, ‘

  • ‘, ‘
  • ‘, false, 365, $current_cat_id);

    if ($popular_in_this_cat != “None found”) { ?>

    <h3 class=”widgettitle”>Popular in <?php single_cat_title(); ?></h3>

      <?php echo $popular_in_this_cat; ?>

    <?php } ?>

    <?php } ?>

    <h3 class=”widgettitle”>Recent Posts</h3>

      <?php wp_get_archives(‘type=postbypost&limit=5&format=html&before=&after=’); ?>

    <?php } ?>

    <?php if (is_single()) { ?>

    <?php if (function_exists(‘related_posts’)) { ?>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <?php # The “related posts” will only display if you’ve installed

    # the “related posts” plugin from http://www.w-a-s-a-b-i.com

    # Note: The original one from wasabi will not work as expected in this theme.

    # The MODIFIED version of that plugin should have been included with this theme. If not,

    # download this theme again at wordpress.bytesforall.com to get the modified plugin.

    # The first number (5) is max # of posts displayed,

    # the second number (10) is length of post excerpt (words) to show.

    # Salt to taste:

    $current_related_posts = related_posts(5, 10, ‘

  • ‘, ‘
  • ‘, ”, ”, false, false);

    if ($current_related_posts != “No related posts”) { ?>

    <h3 class=”widgettitle”>Related Posts</h3>

      <?php echo $current_related_posts; ?>

    <?php } ?>

    <?php endwhile; endif; } ?>

    <h3 class=”widgettitle”>Recent Posts</h3>

      <?php wp_get_archives(‘type=postbypost&limit=5&format=html&before=&after=’); ?>

    <?php } ?>

    <?php # for pages that are not single posts, category pages or the homepage, show this:

    } else { ?>

    <h3 class=”widgettitle”>Recent Posts</h3>

      <?php wp_get_archives(‘type=postbypost&limit=5&format=html&before=&after=’); ?>

    <?php if (function_exists(‘mdv_most_commented’)) { ?>

    <h3 class=”widgettitle”>Popular Posts</h3>

      <?php # The first number (10) is max amount of posts displayed,

      # the last number (365) is how old (days) posts can be to be included here.

      # Don’t change the other parts. Salt to taste:

      mdv_most_commented(10, ‘

    • ‘, ‘
    • ‘, false, 365); ?>

    <?php } ?>

    <?php } ?>

    <?php /* #####################################################################

    ####### Widgetized RIGHT sidebar area starts here ########

    ####### The stuff below will dissapear once you start ########

    ####### to add widgets to the right sidebar ########

    ##################################################################### */

    if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(2) ) : ?>

    <h3 class=”widgettitle”>Links</h3>

      <?php wp_list_bookmarks(‘title_li=&categorize=&title_before=&title_after=’); ?>

    <h3 class=”widgettitle”>Meta</h3>

      <?php wp_register(); ?>

    • <?php wp_loginout(); ?>
    • <?php wp_meta(); ?>

    <?php endif; ?>

    <?php } ?>

This is the sidebar2.php of the atahualpa theme.

I have taken out where I put the crosses and Adsence code, but it is still on the site. Also tried to reinstall the theme, but this does not work. So think it may have been copied onto another page or something (very new this wp but trying very hard!).

thanks

whooami

@whooami

Member

are you using any caching plugin?

Do I see have a php closing tag???
<?php /* #####################################################################

hi whooami, not using a caching plugin.

sorry what is a “closing tab”

can anybody please, please help, I’m now hitting my head against the wall and that is still not helping:)

sorry what is a “closing tab”

TaG. It says <?php /* #####, that’s not a complete tag. Now I’m not much of a coder, but my guess is that it should say <?php } ?> or at least call a function and be closed with a >.

I tried changed to the following but it did not make any difference. I also down loaded the template against and reinstalled it, but this did not make any difference. Also noticed that any changes made in this template do not appear on the site. Any ideas?

thanks

<?php /* #####################################################################

####### Widgetized RIGHT sidebar area starts here ########

####### The stuff below will dissapear once you start ########

####### to add widgets to the right sidebar ########

##################################################################### */?>

<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(2) ) : ?>

anybody got any suggestions?

thanks

please help:)

Looking at it again, it seems that your theme developer accidentally made the “widgetized RIGHT…” etc remark put between PHP tags. What happens if you delete the opening <?php /*, leave the ###’s and the text and delete the closing */?>? I don’t think the ###’s and text should be between PHP tags.

As regards your theme not changing. I usualy have to switch to default and back to the custom theme before changes appear. I’m not sure why, but I guess the theme needs to be ‘reloaded’ or something.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘“XXXXXXXX” in my side bar?’ is closed to new replies.