Mahendra Rana

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: Business site disabling ads on page not working #34422

    Mahendra Rana
    Spectator

    I done this way but its not working still showing ads at shop page

    function swift_hide_ads(){
    GLOBAL $swift_hide_all_ads;
    if(is_single() || is_page() || is_woocommerce() || is_shop()) {
    GLOBAL $post;
    $swift_hide_all_ads = get_post_meta($post->ID,’_swift_post_meta’,true);
    if(isset($swift_hide_all_ads[‘disable_all_ads’]))
    $swift_hide_all_ads = $swift_hide_all_ads[‘disable_all_ads’];
    else
    $swift_hide_all_ads = false;
    }else{
    $swift_hide_all_ads = false;
    }

    in reply to: Business site disabling ads on page not working #34418

    Mahendra Rana
    Spectator

    Sorry,

    On products page it works and ads are removed but

    At shop page it is still showing ad

    I have disabled Swift CMS Ad sections in shop page

    still it is showing ads

    in reply to: Business site disabling ads on page not working #34417

    Mahendra Rana
    Spectator

    Thanks you its resolved.

    in reply to: Business site disabling ads on page not working #34408

    Mahendra Rana
    Spectator

    Hello Satish,

    I have reopened this query. you might have missed it so, I marked it as unresolved.

    Please help me to sort out this issue.

    Thanks

    in reply to: Business site disabling ads on page not working #34389

    Mahendra Rana
    Spectator

    Hello Satish,

    Once Again, I need help

    The above code works fine on home page
    However I have installed Woo commerce and so, I wanted to disable ads on shop/products etc page

    I tried it in the below code by adding woocommerce page but its not working.

    I tried by changing page template to woocommerce, full hybrid etc.

    I also disabled the global settings in the shop /product page for advertisement
    still it is showing ad. The ads are showing “header ad” and adsense linked unit ad below the navigation pane

    I think something I missing in the below code
    can you help me Thanks a lot

    add_action(‘wp_head’,’swift_hide_ads’);
    function swift_hide_ads(){
    GLOBAL $swift_hide_all_ads;
    if(is_single() && (is_woocommerce()|| is_page())){
    GLOBAL $post;
    $swift_hide_all_ads = get_post_meta($post->ID,’_swift_post_meta’,true);
    if(isset($swift_hide_all_ads[‘disable_all_ads’]))
    $swift_hide_all_ads = $swift_hide_all_ads[‘disable_all_ads’];
    else
    $swift_hide_all_ads = false;
    }else{
    $swift_hide_all_ads = false;
    }

    in reply to: Is it safe to use caching plugins with Swift? #34373

    Mahendra Rana
    Spectator

    I used W3 Total Cache and WP Super with swift Theme
    I never find any issue. Though, now days I am not using any cache cause I am using Nginx with varnish so don’t need a cache plugin.

    in reply to: Is Swift ready for WordPress 4.4? #34259

    Mahendra Rana
    Spectator

    I have upgraded to WP 4.4. and didn’t noticed any issue.

    in reply to: Business site disabling ads on page not working #31582

    Mahendra Rana
    Spectator

    Yes, That works. Thanks a lot.
    I have to admit that Swift themes gives me double Organic PV and Ads-ense earnings

    in reply to: Business site disabling ads on page not working #31576

    Mahendra Rana
    Spectator

    Thanks I will test it in coming Days.

    in reply to: Business site disabling ads on page not working #31567

    Mahendra Rana
    Spectator

    I sent all details yesterday night. Hope you have received it.

    in reply to: Business site disabling ads on page not working #31562

    Mahendra Rana
    Spectator

    Thanks a lot. I respect your time and efforts. If you need the login details, then please let me know so that I can keep them ready in advance advance and will submit it through your support page as mentioned here in the right side pane.

    • This reply was modified 5 years, 2 months ago by  Mahendra Rana.
Viewing 11 posts - 1 through 11 (of 11 total)