Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • On one of my blogs, the theme was working fine but suddenly I do not see anything except a blank page under the mystique settings page. The page displays the tabs but clicking on any tab generates nothing.

    Could you please tell what the problem might be as I do not want to let go of the theme.
    Regards,
    Amy

    I tried the following (by modifying the code) to get the ads to display after post 1 and 3 and got the theme broken:
    <?php
    function my_ads_after(){
    global $wp_query;
    if(is_home() && ($wp_query->current_post+1 == 1)) echo do_shortcode(‘[ad code=5]’);
    }
    function my_ads_after(){
    global $wp_query;
    if(is_home() && ($wp_query->current_post+1 == 1)) echo do_shortcode(‘[ad code=6]’);
    }
    add_action(‘mystique_after_post’, ‘my_ads_after’);
    add_action(‘mystique_before_post’, ‘my_ads_after’);
    ?>

    My site is https://www.writeawriting.com/

    Thanks to this issue solved, I have fixed it up now but can u please tell us that how can we put in 2 ad codes in the home page, category, tag pages.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)