Page without top-ad

Posted in: Newspaper
Post count: 11

Hello, could you help me with this?

http://www.vvsforum.no/brandstory/
I would like to set up this page WITHOUT the top-ad.

Is that fairly easy?
I know the page has been modified, but I can no longer get help from the guy that did the job.

Login adress is:
http://www.vvsforum.no/wp-admin

The credentials are:
Brukernavn:
Passord:

Best regards,
Arne

  • This topic was modified 9 years by Bogdan B..
Post count: 22421

Hello,

Please do not post your login info here as it is a public forum, not a private message.
The header ad can be removed from a specific page by wrapping the ad code in a condition inside the theme code. There is no setting for this so we have to hard-code it.
Please access header-style-4.php and add this code:
<?php
if (!is_page( 24281 )){
locate_template('parts/header/ads.php', true); }
?>

instead of this one: http://screencast.com/t/7FgW2UJ5eWTt

Thank you!

Post count: 11

Hei Bogdan, thank you.
But – this site uses the custom made header template called “Hirvi Style”.

Do we use this code on that specific php?
And how do we dress the specific page that shall not display ads? Is it with the number (24281)? Is this number the ID of the page linked in my post?

BR Arne

Post count: 22421

Well if the header is custom, you should edit the custom header file. I;m not sure how it;s added or how it pulls the ad. You will have to identify the custom header file and idendify the ad code and wrap it inside this condition:
<?php
if (!is_page( 24281 )){
the ad code here ; }
?>

Thank you!

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