• I’d like to know what coding to use to change the content fo my sidebar when on the index page and when on any other page. I don’t use widgets or whatever.

    I tried using the following code:
    <?php if ( !(is_home()) ) { ?> CONTENT <?php } ?>

    It didn’t work for me.

    Can anyone help me?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jaclynmarie1

    (@jaclynmarie1)

    Anyone??

    Thread Starter jaclynmarie1

    (@jaclynmarie1)

    SOMEONEEEEE

    Thread Starter jaclynmarie1

    (@jaclynmarie1)

    ….

    I’m not the best with my php, but I believe there’s something in the WordPress Default theme that may be able to help you out in the header.php template

    `<link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <style type=”text/css” media=”screen”>

    <?php
    // Checks to see whether it needs a sidebar or not
    if ( !empty($withcomments) && !is_single() ) {
    ?>
    #page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbg-<?php bloginfo(‘text_direction’); ?>.jpg”) repeat-y top; border: none; }
    <?php } else { // No sidebar ?>
    #page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbgwide.jpg”) repeat-y top; border: none; }
    <?php } ?>`

    Not sure if that is a help =/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Displaying something ONLY on Index page’ is closed to new replies.