Custom banner in header area

Posted in: Newspaper
Post count: 19

Hi!
We want to add a custom ad banner in the header area, different from what the theme-included headers offer.
The following code should be used: <?php echo do_shortcode(“[pro_ad_display_adzone id=142424]”); ?>
We inserted it in the header.php but without any success, as nothing is shown on the frontend.
Could you tell us which file to edit to be able to insert the banner? We are using “Header style 10”.
Thank you,
Anna Balizs

Post count: 9

You can add that directly through TD Composer from the homepage, by dragging and dropping the appropriate element and pasting the code.

For some reason, the changes made in the header.php do not reflect on the website.

Post count: 19

Hi. I am doing tests with the header manager, and it seems that I can insert the shortcode. but I have a problem: I can’t find a way to insert (or make it show) the topbar. Although in the theme options it is active it is not shown.

Post count: 19

I have another question: If I build a header and save it, it only applies to the page I edit, but not to the rest of the site. What should be done to make it apply to the entire site?

Post count: 35449

Hi,

If this <?php echo do_shortcode(“[pro_ad_display_adzone id=142424]”); ?> is the only code that you get, then this can be set only on theme files. Using Newspaper theme there are three headers.php if you are using standard pack and a standard header the code need to be set in this header file -> wp-content/plugins/td-standard-pack/Newspaper/header.php if you are using a cloud header from tagDiv Cloud Library you need to set the code in this header file -> header.php adn if the tagDiv Composer is not enable the theme will use this header file -> wp-content/themes/Newspaper/header.php

In order to set the cloud header on the whole website you need to set it in theme panel -> https://i.imgur.com/KObr5f8.png

Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.