Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #977968
    hdarteaga
    Participant

    Hi,

    Wordpress and xtheme are fully updated!

    I’ve added a banner supported by ADglare on my blog but would like it to only show on “post” pages and not on “page” pages if that makes sense. The banner is the long horizontal image that reads “CADE ROBERTS MUSIC”

    Posts: I would like the banner to appear on the blog
    https://prostudiolive.com/blog/
    https://prostudiolive.com/blog/audio-summing-100000-api-console-vs-pro-tools/

    Pages: I would not like the banner to appear on pages
    https://prostudiolive.com/blog/thank-you/

    It would be great if you can assist me with this. I’ve been trying a variety of different things and nothing has worked. Thanks so much for your great customer service once again.

    #978252
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! It seems that you added the custom ADGlare section in the template in your child theme. Please edit the template and add a conditional statement like this:

    <?php if ( ! is_page() ) : ?>
     
      <!-- Display AdGlare section -->
      <div class="x-container max width offset">....</div>
    
    <?php endif; ?>

    The section will not be display on page. It will only gets display in the blog index, archive and single blog posts.

    Please let us know if this works out for you.

    #978264
    hdarteaga
    Participant

    Thank you. Would it be possible for you to guide me to the exact php or css file within the child theme that code was placed in so I can add your code, I’m not sure what template you’re talking about. The developer that placed that original code is unreachable. It would be greatly appreciated, thanks.

    #978444
    Lely
    Moderator

    Hello There,

    Please check functions.php file on your child theme on this folder wp-content/themes/x-child. If you can’t find it there, please check this folder: wp-content\themes\x-child\framework\views. Remove all the content(note to backup this file) and then add each file again one by one. Check the page after adding each file. Then check which file you add that displays the adds again on your page.

    Hope this helps.

    #978671
    hdarteaga
    Participant

    Thanks!

    #979344
    Jade
    Moderator

    You’re welcome.

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