• Hi Greg,

    I’ve got three questions, thanks for bearing with me on these!

    1) We’re using PeepSo with WP Adverts. They have a built in messaging system.
    I was wondering how we could remove the contact details section?

    Here’s a screenshot: https://imgur.com/SLZvgNp You can see that we have the contact details, then we have a custom button, and then we have the message button from PeepSo.

    2) I was wondering if there’s any way to change the text size on the sidebar widget. It’s quite large compared to the other widgets. Here’s a screenshot as well: https://imgur.com/c8bdk8A

    3) We have ‘wanted’ ads as well as normal ads. Is there some sort of code we could add to the custom ‘wanted form’ where anything a user writes in there will be automatically pre-empted by the word “Wanted:” when the posting is made for example? (So if they post Bananas, the actually listing will come out Wanted: Bananas) Or perhaps you might have some other suggestion on how differentiate those things?

    Thank you as always for your help!

    Alex

    The page I need help with: [log in to see the link]

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

    (@gwin)

    Hi,
    1. to hide the “Show Contact Information” button on the Ad details page just add the code below in your theme functions.php file

    
    add_action( "init", function() {
      remove_action( 'adverts_tpl_single_bottom', 'adverts_single_contact_information' );
    }, 200 );
    

    2. do you mean the Ad titles in the “Recent Listings” widget? If so then you should be able to do that by adding the code below in wp-admin / Appearance / Customize / Additional CSS panel

    
    .adverts-widget-recent-title a {
        font-size: 12px;
        line-height: 16px;
    }
    

    3. hmm do you want the Ads in “Wanted” category to have the title always prefixed with “Wanted” just on the [adverts_list]?

    Thread Starter saprotsenko

    (@saprotsenko)

    Perfect, thanks for the first two codes, those worked perfectly!

    For 3). Yes I thought that would be the best way to differentiate. Here is what we currently have: https://imgur.com/N7R10nq

    We just don’t want users to confuse what is ‘for sale’, and what is ‘wanted’ in the listings, because it’s all shown together at first.

    I also thought about maybe making the actual box a different color but I think that would be a more complex solution.

    If anyone who’s used your plugin before had similar questions/solutions I’d be happy to hear them. Or maybe you have a better recommendation as you know the plugin best?

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    if you are ok if adding the word Wanted after the title (not before) then this will be the easiest to do, you will be able to have it in a different background and will not need to modify templates.

    To do that in the theme functions.php file add

    
    add_action( "adverts_list_after_title", function( $post_id ) {
      if( has_term( "wanted", "advert_category", $post_id ) ) {
        echo '<span style="background:silver; padding: 4px;">Wanted</span>';
      }
    });
    

    This should work assuming the category slug is “wanted” if not then in the code above replace “wanted” with the category actual ID or slug.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing Contact Details & stylistic changes’ is closed to new replies.