"Featured" and "New" flags

This topic contains 5 replies, has 4 voices, and was last updated by  Vikas 10 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #2602

    amolin
    Buyer
    Post count: 161

    How can I change the “Featured” and “New” flags? I need translate them

    #2603

    Guust
    Moderator
    Post count: 29970

    Change /wp-content/plugins/geodirectory/geodirectory-assets/images/new.png and /wp-content/plugins/geodirectory/geodirectory-assets/images/featured.png ??

    #2608

    amolin
    Buyer
    Post count: 161

    Thank you.

    Although, I would prefer a way that not force me upload the images with each plugin update.

    #2610

    John Allsopp
    Expired Member
    Post count: 399

    You could change the css to show your image – firebug shows me that the “new” image is declared in /geodirectory-assets/css/style.css on line 300, so you can just overwrite this in your child-theme’s stylesheet:

    
    
    #geodir_wrapper ul li .geodir_new_listing {
        background: url("../images/my-new-new.png") no-repeat scroll left top rgba(0, 0, 0, 0);

    I don’t have featured on my test site, but it would be the same principal.

    #2611

    amolin
    Buyer
    Post count: 161

    Thank you John!

    #2621

    Vikas
    Full Member
    Post count: 1128

    For developers, i have provided more filters and hooks to add remove badges on image.

    do_action('geodir_before_badge_on_image', $post) ;
    apply_filters('geodir_featured_badge_on_image' , '<a><span class="geodir_featured_img">&nbsp;</span></a>') ;

    Thanks

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount