Forums
Forums / Themes and Templates / sidebar page div section | thematic theme
(@michover)
13 years, 2 months ago
I have a custom menu for pages “Twitter” & “Facebook” – the menu is located in the thematic_betweenmainasides()
I want the user to be able to click on either of the pages, and for that page to display in a div section below the custom menu.
I alway want the twitter page to be the default displayed on the index.php\page.php
The code I believe will need to be a conditional if is_page(‘twitter’) || is_page(‘facebook’):
Does anyone have an example I can use? Much appreciated.
CURRENT CODEIN FUNCTION.PHP function childtheme_secondary_content() { ?> <div id=”socialfeeds”> <div class=”widgetcontainer”> <?php the_content(); edit_post_link( __( ‘Edit’, ‘thematic’ ), “\n\t\t\t\t\t\t” . ‘<span class=”edit-link”>’ , ‘</span>’ . “\n” ); ?>
</div> <!–socialfeeds–> <?php
} add_action(‘thematic_betweenmainasides’, ‘childtheme_secondary_content’, 10);
The topic ‘sidebar page div section | thematic theme’ is closed to new replies.