"Upload Your Logo:" text appearing in listings

This topic contains 6 replies, has 2 voices, and was last updated by  BJ Bowen 5 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #480530

    BJ Bowen
    Full Member
    Post count: 73

    Just upgraded to V2 and it appears I’ll have to revisit some issues that we went through before.

    http://research.foundation96.com/location/

    The listings all say “Upload Your Logo:” even though the listings have logos.

    Your tech support sent this code to 1. remove that text and 2. to make the logo NOT open in a lightbox.

    function gd_strip_link_from_biz_logo($html) {
    global $post;
    //$html = preg_replace(‘/(.*?)/’, “\1”, $html);
    $html = ‘geodir_gd_bus_logo.'” class=”gd-bus-logo” alt=”” />’;
    return $html;
    }
    add_filter(‘geodir_show_geodir_gd_bus_logo’, ‘gd_strip_link_from_biz_logo’);

    That code is no longer working.

    #480553

    Alex Rollin
    Moderator
    Post count: 27815

    With V2 you can adjust that in the Archive item template.
    First you have to unset the logo to show in listings, then edit the template to add GD Post Meta for the logo field and show only the value.
    https://wpgeodirectory.com/docs-v2/geodirectory/personalize/

    #480633

    BJ Bowen
    Full Member
    Post count: 73

    No one wants that text to show. Why would it be on by default?

    This upgrade has been a nightmare redesigning ALL of the pages.

    I had no idea when I told my client that this would be close to $1000 worth of work.

    Wondering why this “one more thing”?

    Sorry for the rant, but it’s been two full days of this and I’m halfway there.

    #480636

    BJ Bowen
    Full Member
    Post count: 73

    If you could give me the shortcode to do that, that would save me a lot of time.
    This is the shortcode on Pages>Archive Item
    [gd_archive_item_section type=’open’ position=’left’][gd_post_badge key=’featured’ condition=’is_not_empty’ badge=’FEATURED’ bg_color=’#fd4700′ txt_color=’#ffffff’ css_class=’gd-ab-left-angle gd-badge-shadow’][gd_post_images type=’image’ ajax_load=’true’ link_to=’post’ show_logo=’true’][gd_archive_item_section type=’close’ position=’left’][gd_archive_item_section type=’open’ position=’right’][gd_post_title tag=’h2′][gd_author_actions author_page_only=’1′][gd_post_distance][gd_post_rating alignment=’left’ list_hide_secondary=’2′][gd_post_fav show=” alignment=’right’ list_hide_secondary=’2′][gd_post_meta key=’business_hours’ location=’listing’ list_hide_secondary=’2′][gd_output_location location=’listing’][gd_post_content key=’post_content’ limit=’60’ max_height=’120′][gd_archive_item_section type=’close’ position=’right’]

    I’ve tried changing the show_logo=’true’ to show_logo=’false’ but that does nothing.

    I tried removing that entire line, but it removes the featured image.

    #480647

    BJ Bowen
    Full Member
    Post count: 73

    wow… it took me forever to find stupid shortcode to just show the logo. Sorry. This is crazy frustrating.

    #480648

    BJ Bowen
    Full Member
    Post count: 73

    [gd_post_meta key=”gd_bus_logo” show=”value”]

    when inserted on the Archive Item page does not show the logo.

    #480649

    BJ Bowen
    Full Member
    Post count: 73

    [gd_post_meta key=”gd_bus_logo” show=”value-strip”]

    That worked.

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

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

Open Support Ticket