Support » Theme: islemag » Ads-free widget area

  • Resolved kikaweb


    Hello! I’m setting up a website using a child theme of IsleMag and I was wondering if there’s a way to have a “ads free” widget area on the home page.

    As a matter of fact all the 5 widget areas on the front page are blocked by AdBlock because of the markup – which is fine if you need to use Ads… but the problem is that at least in one of these areas I need to insert a different kind of content, in my case it’s a subscription form.
    I tried to register a new widget area in my child theme’s function.php file, but it doesn’t show up on my front page.

    Any help would be much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @kikaweb,

    Thanks for contacting us.

    To add subscription form you can use the subscription form shortcode in a text widget.

    Let me know if you still get any issue.


    Hello @wpcoderguy, thanks for your reply.
    Regarding your suggestion: the problem is the widget area, not the subscription widget. Since the markup is hardcoded in the parent theme’s functions.php file even a text widget won’t show up on home page. The code I’m referring to is the following:

    <?php if ( $islemag_has_sidebar ) { ?>
    	<div itemscope itemtype="" id="sidebar-ads-area-<?php echo $section_nb; ?>" aria-label="<?php echo $islemag_aria_label; ?>">

    The only way I can see this widget area is if AdBlock is disabled.

    So my question is: is it possible to override that line of functions.php file in my child theme?
    For the moment the only solution I found is creating a new front page in child theme and hardcoding the form using a function to call the shortcode. But it’s not a very elegant solution and if one day my client would like to get rid of the form, he cannot do it from the admin panel…

    As I wrote in my previous message, for some reason I wasn’t able to register a new widget area and show its content on the home page either. But I’m a designer and not a coder, and reverse engineering a theme is a bit difficult for me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ads-free widget area’ is closed to new replies.