Removing AdSense from 404 page

Posted in: Newspaper
Post count: 128

How would one remove the AdSense header ad from a 404 page? It doesn’t look like Google likes them on those pages.

Example: https://www.vitalthrills.com/2019/03/11/good-boys-red-band-trailer/

We’re using Header “Style 2 – Multipurpose.”

Thank you.

Post count: 20688

Hi,

Hiding it with CSS would not be recommended, this is a violation of Adsense terms. For non-multi purpose header styles there would be a way for a long term solution, by setting a condition in the header in a child theme. But the multi-purpose header styles files are in the composer plugin.

One way would be to use a cloud library 404 template, there are some designed by us, but you could design your own – https://cloud.tagdiv.com/#/load/404
Then in that 404 template create a new header (with header builder elements) or import one
http://prntscr.com/n4j5q7
That header will then only be used in the 404 pages. So this would be a solution.

Thanks

Post count: 128

Brilliant. I should have done this in the first place. Thanks for always being such a great help!

Post count: 128

How would I change the top bar/menu blue color to black like the rest of our site?

https://www.vitalthrills.com/2019/03/11/good-boys-red-band-trailer/

Post count: 128

I figured out how to make the top menu black. The only thing left I can’t figure out is in the live search box.

If you scroll down a bit and use the sticky menu and then click on the search icon (the magnifying glass), there’s a blue line above the box that includes an arrow pointing up to the search icon. How do I remove that?

Also, when you hover over the search button, it turns that same blue. I would like to make that a custom red color.

I’m having trouble finding these settings in the header manager after I click on the search icon in the editor.

Post count: 128

My apologies, I don’t want to remove the blue line and arrow pointing up. I want to match the colors instead to how the live search box looks on the normal menu (not the sticky menu).

I still have the same question about the hover color for the search button.

Post count: 20688

There are options for the search border and arrow – http://prntscr.com/n5v3ye you could use those to color them as you wish.

For the button as well, default and hover colors – http://prntscr.com/n5v6hb left field is for default and right field is for hover.

Post count: 128

Thank you. It all seems to be changing, except for the icon hover color for the sticky menu. That’s remaining blue after I change it.

Post count: 20688

From what I can see there is no hover color set for the search icon at the moment. I did test it in sticky and non sticky, seems to work alright

Not sticky icon hover color – http://prntscr.com/n69hvy
Sticky icon color hover – http://prntscr.com/n69izt

So all there is to it is to set a color for the default icon hover, then activate sticky mode and set a hover color again – http://prntscr.com/n69jja

Post count: 128

My apologies, I’m referring to the search button, not the search icon. The search button stays blue when you hover over it in the sticky menu.

Post count: 20688

Same for the button, first set a hover color for the non-sticky header
http://prntscr.com/n6rkr1http://prntscr.com/n6rmup
The in sticky mode – http://prntscr.com/n6rkz9http://prntscr.com/n6rmzt

I believe you have just set a color for the non-sticky element. Note that you can copy and paste styles (for the same elements), so this is easier than doing it all over again
http://prntscr.com/n6rnuehttp://prntscr.com/n6rnzf
So when you want to customize two instances of the same element you can just copy paste the style (right click menu). Most settings will be carried over.

Post count: 128

Worked, thanks!

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