• Resolved joeborders

    (@joeborders)


    Hello! I’m trying to add a classifieds system to an already established site. Everything is going well so far, but I’m getting a large blank, grey area as a header image at the top of every classified listing….I’m thinking it might be a conflict with the way the rest of the site is set up. Does anyone know anything about this?
    Thank you! ^_^

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    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://www.ads-software.com/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.

    Thread Starter joeborders

    (@joeborders)

    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! ^_^

    Thread Starter joeborders

    (@joeborders)

    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”?

    Thread Starter joeborders

    (@joeborders)

    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;
    }

    Thread Starter joeborders

    (@joeborders)

    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/

    Plugin Author Greg Winiarski

    (@gwin)

    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 );
    
    Thread Starter joeborders

    (@joeborders)

    Beautifl! T_T Thank you so much!!!! T_T

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Blank header images?’ is closed to new replies.