Hi,
i am glad WPAdverts is working well for you so far. Can you maybe paste a link to a page where you are having this problem it would be easier to tell how to resolve it?
From your description, it looks like the problem is with the featured images, you can try installing a plugin like Hide Featured Image https://ww.wp.xz.cn/plugins/hide-featured-image/ it should remove the white space.
With the page URL it should be also possible to remove the white space on Ad details pages with a CSS snippet but i would need a page link to tell what the snippet should look like.
Hi Greg! thanks for the response! ^_^. I have the site in maintenance mode right now. We had a problem with people sending spam through the staging site….is there a way we could do this without me taking it out of maintenance mode? …I’m thinking you may be away for the weekend. If I hear from you again I can take it out of maintenance for a bit so you can take a look at it.
Thanks again! ^_^
the page url I’m looking at is https://staging1.sacwellness.com/advert/this-is-a-test-listing/
oy! I just don’t understand css lol. shouldn’t there be a simple way to say “hey, just don’t show the header images on pages in X directory”?
Ok. I found a css code that looks like it will do what I need, but I need to know the specific code for advert pages….I think?
.archive-header {
background: none;
border: none;
padding: 1px 0 0;
margin: 0;
}
.archive-header i,
.archive-header h1 {
display: none;
}
Ok. I took maintenance mode off for the day so you can see this. Here is the page
https://staging1.sacwellness.com/advert/this-is-a-test-listing/
Hi,
to hide the background i would suggest adding the following code in wp-admin / Appearance / Customize / Additional CSS panel
.single-advert .blog-single-page {
display: none;
}
If you would like to use your code instead then just prefix the CSS rules with .single-advert, so instead of
.archive-header { ... }
you will have
.single-advert .archive-header { ... }
Also, with the code i pasted the Ad title will be hidden, you can restore it by adding the code below in your theme functions.php file
add_action( "adverts_tpl_single_top", function( $post_id ) {
echo sprintf( '<h1>%s</h1>', esc_html( get_post( $post_id )->post_title ) );
}, 0 );
Beautifl! T_T Thank you so much!!!! T_T