Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1398005
    tma_dave
    Participant

    Hi,

    Can you give me some advice on the best way to add a new div just before the existing <div class=”entry-content content”>, and close it just after the comments div is closed? It’s to better support the way that certain types of ads work on the site, ensuring that both the post content and the comments are enclosed by a particular div that’s targeted by the ad script.

    The example as given by the ad company is:

    <div id="ad_target">
         <div class="entry-content">
         ...
         </div>
    
         <div id="comments">
         ...
         </div>
    </div>

    Thanks in advance!

    #1398208
    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in! Can you please let us know which stack you’re using so we can suggest a solution accordingly?

    Thanks!

    #1398250
    tma_dave
    Participant

    Ahh, sorry. Ethos.

    #1398687
    Rupok
    Member

    Hi there,

    You can edit a page template with Child theme within /framework/views/ethos/. Let’s grab the existing code from a template from X and use it within Child Theme.

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1398005 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>