WordPress.org

Forums

[resolved] Show widget included with theme on front page only (2 posts)

  1. CarolinaNMyMind
    Member
    Posted 5 years ago #

    Hi.

    I bought a theme that has a twitter widget already included in the sidebar.php file.

    Currently, it shows up in the sidebar on all pages with the following code:
    <?php if ( $clk_show_tweets==0 ) { ?>

    I've tried altering it several times, including:
    <?php if ( $clk_show_tweets==0 && is_front_page() ) { ?>

    But that makes the widget disappear entirely.

    What can I do so that it only shows up in the sidebar on the front page?

    Thanks in advance!

  2. vtxyzzy
    Member
    Posted 5 years ago #

    The Widget Logic plugin might do what you want.

Topic Closed

This topic has been closed to new replies.

About this Topic