WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Show widget included with theme on front page only

[Resolved] Show widget included with theme on front page only

  • CarolinaNMyMind
    Member

    @carolinanmymind

    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!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Show widget included with theme on front page only’ is closed to new replies.