• Resolved matelo

    (@matelo)


    Hi,
    is it possibile to include in the index an h2 that is shown in the page through an ad inserter?

    thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Steven

    (@shazahm1hotmailcom)

    @matelo

    Only if the ad is inserted via the core WordPress the_content filter. It will be included automatically.

    Thread Starter matelo

    (@matelo)

    Hi, thank you for your quick reply. Is there a solution for this?

    I’m currently using the plugin “ad inserter” to add h2 + adblock in every page

    Steven

    (@shazahm1hotmailcom)

    @matelo

    Sorry, there is no way for me to know unless I download and review the code of the other plugin. Perhaps this question is better asked to the developers of the ad inserter plugin. They should know if their content is added via the_content filter or not.

    Hello,

    I’m the author of the Ad Inserter plugin.

    Of course, it uses the_content filter to insert codes.

    The plugin priority is initially set to 99999 so it should process the content as the last plugin, but you can easily change priority on the general plugin settings tab (tab * / tab General).

    https://adinserter.pro/documentation#plugin-settings

    Thread Starter matelo

    (@matelo)

    Hi thank you for your reply, I really appreciated it.

    I set priority to 10 and it works: h2 inserted trhough your plugin now shows in the table of content.

    However I also use table of content in the sidebar and there the h2 doesn’t display.

    Steven

    (@shazahm1hotmailcom)

    @spacetime

    Thanks!

    @matelo

    ezTOC runs at 100, so you can use 99. In regards to the widget, if after the priority change, the ad insert still does not not show, perhaps it will in the forthcoming 2.0 release which has been significantly refectored in order to support the <!--nextpage--> tag.

    Thread Starter matelo

    (@matelo)

    @shazahm1 sorry, actually h2 inserted through ad inserter shows also in sidebar.

    However table of content doesn’t show properly and also h3 are not displayed at all as you can see:

    https://www.qualepolizza.net/cambiare-assicurazione-auto/

    Steven

    (@shazahm1hotmailcom)

    @matelo

    This is due to how the theme is applying styles to widgets. For some reason it is making all unordered lists in widgets as inline-blocks, globally. To correct, add the following to the theme’s custom CSS area:

    
    .ez-toc-widget-container ul {
    	display: block;
    }
    

    The theme also adds a significant padding to list items to widgets globally. To correct, add the following to the theme’s custom CSS area:

    
    .ez-toc-widget-container li {
    	border: none;
    	padding: 0;
    }
    

    And one last tweak to correct the padding around the widget. The theme is applying a large padding around divs in widgets, globally. To correct, add the following to the theme’s custom CSS area:

    
    div.ez-toc-widget-container {
    	padding: 0;
    }
    

    I’ll see if these can be added to ezTOC.

    Steven

    (@shazahm1hotmailcom)

    @matelo

    I’ve just added similar changes to ezTOC. These will be included in the 2.0 update. This should help in making it a little more robust, preventing theme’s from breaking the TOC widget.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘include h2 that is not phisically in the page’ is closed to new replies.