Support » Fixing WordPress » is_page help display picture certain page

  • Resolved SETH__M


    I’m trying to get a picture to display in the sidebar on a contact-us page.

    I’ve been attempting to fix by varying it, but am at a loss:

    <div class="sidebars sidebarright">
            <div class="sidebar2">
    <?php if (is_page('contact-us')) { ?>
    <?php echo do_shortcode('[singlepic id=97]'); ?>
    <?php } else { ?>
                <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Wide Sidebar') ) : ?>
                <div class="block">
                    <h3>This is the wide sidebar</h3>
                    <p>This is a great spot to put some information or a promotion. Use a "Text" widget in your "Wide Sidebar" sibebar options in WordPress. Whatever you put in the title will show above and whatever you put as text (or html) will show right here!</p>
                    <p>There are a total of 7 widget areas: Wide, Left and Right sidebars, along with footer widgets Footer1, Footer2, Footer3 and Footer4..</p>
                <?php endif; ?>
    <?php } ?>

    Any help would be appreciated.

  • The topic ‘is_page help display picture certain page’ is closed to new replies.