Add nice features

This topic contains 16 replies, has 4 voices, and was last updated by  Kiran 4 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #505244

    Giovan Antoni
    Full Member
    Post count: 132

    Hello sorry for my ignorance, but I need to know where I add these characteristics that I have pointed out in the image that I find beautiful, for:
    Condition.
    Brand
    Model
    Seller Type *
    Payment Types
    Video

    Example: https://wordpress-314540-968128.cloudwaysapps.com/

    This is a new project that I want to create and when adding the dummy datas these characteristics appeared.

    #505277

    Kor
    Moderator
    Post count: 16516

    Hi Giovan,

    Thanks for your post. These are badges and you can refer to this section of the documentation https://wpgeodirectory.com/docs-v2/faq/common-examples/#gd_post_badge

    #505367

    Giovan Antoni
    Full Member
    Post count: 132

    Hi, thanks for your help.
    Add the following short code on the GD Archive page:

    [gd_post_badge key = “website” condition = “is_not_empty” badge = “Web Site” link = “%% input %%” bg_color = “# 9c03aa” txt_color = “# ffffff “size =” extra-large “list_hide =” 3 “list_hide_secondary =” 2 “]

    In the following order:
    GD Archive:
    [gd_loop_actions]
    [gd_loop layout=0]
    [gd_loop_paging]
    [gd_post_badge key=”website” condition=”is_not_empty” badge=”Web Site” link=”%%input%%” bg_color=”#9c03aa” txt_color=”#ffffff” size=”extra-large” list_hide=”3″ list_hide_secondary=”2″]

    But it doesn’t work for every post that has a website,
    I changed the order of the short codes several times and it didn’t work.

    Url example: https://redsalud.com.sv/medicos/categoria/cirujanos-oncologos/

    #505446

    Alex Rollin
    Moderator
    Post count: 27815

    Add it to the GD Archive Item template, not the GD Archive template.

    #507068

    Giovan Antoni
    Full Member
    Post count: 132

    Thanks for your answer. At this moment I am testing the ones that I think can work for me.
    I had a problem with the video link, the problem is that the link opens the url of the youtube channel of the video in a new window, and I want it to be like a pop-up window on my website. I do not want a new window to open.

    This is the code I am using:
    [gd_post_badge key=’video’ condition=’is_not_empty’ icon_class=’fas fa-video’ badge=’Video’ link=’%%input%%’ bg_color=’#0073aa’ txt_color=’#ffffff’ list_hide_secondary=’2′ css_class=’gd-badge-shadow gd-ab-top-right gd-lity’]

    Url example: https://redsalud.com.sv/medicos/categoria/coloprotologos/

    Video: https://drive.google.com/file/d/1SAwOAhc1ksoj94oMLQ2_MN65CAFiscvP/view?usp=sharing

    #507070

    Alex Rollin
    Moderator
    Post count: 27815

    gd-lity will do that with links that are recognized as oEmbed like a direct youtube video link but not other URLs like a channel link.

    #508309

    Giovan Antoni
    Full Member
    Post count: 132

    Thanks Alex. But if I am using gd-lity in the short code and it does not produce the desired effect.
    I have discovered that if I deactivate the Rankmath plugins, it works correctly.
    But before discovering that I had to deactivate that plugin, I tried to deactivate the option of that plugin that says: “Open the external links in a new tab / window”, thinking that caused the problem. But even then the same problem always occurred. So it was that I decided to deactivate the plugin completely and deactivating said plugin so if the link works.
    But I can’t leave that plugin disabled since I consider it essential for SEO.

    #508310

    Giovan Antoni
    Full Member
    Post count: 132

    Rank Math SEO plugins

    #508317

    Alex Rollin
    Moderator
    Post count: 27815

    Please share a link and WP Admin credentials. The link should show a page where the badge you want is working as expected so we can see what you are looking for.

    #508544

    Giovan Antoni
    Full Member
    Post count: 132

    As for the video I want this effect to be achieved: That without leaving my website, it shows the video in a pop-up window.
    As you can see some examples in the following link:

    https://wordpress-314540-968128.cloudwaysapps.com/

    Video showing the desired effect:

    https://drive.google.com/file/d/1AeSeaf5UfkxJ7Mpi7UV32uLrIiD_vfTp/view?usp=sharing

    As for the badges there is one that I have named “Special offers”, which should appear in the lower right corner of the image. But I can’t make it appear exactly in that position. I do not know what I’m doing wrong.

    #508546

    Giovan Antoni
    Full Member
    Post count: 132
    This reply has been marked as private.
    #508585

    Giovan Antoni
    Full Member
    Post count: 132
    #508618

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #508967

    Giovan Antoni
    Full Member
    Post count: 132

    At the moment I am going to remove the link from the video and if you could send me a notification when the developers have overcome the problem I will suffer a lot.

    #509341

    Kiran
    Moderator
    Post count: 7069

    Hi Giovan,

    This is something conflicts with lity element. I have added following PHP snippet to fix this. Now video popup works fine.

    
    
    function gd_snippet_wp_footer() {
    ?>
    <script type="text/javascript">
    jQuery(function($){
    	$('.gd-badge-meta.gd-lity > a').each(function(){
    		$(this).attr("data-lity", "");
    	});
    });
    </script>
    <?php
    }
    add_action( 'wp_footer', 'gd_snippet_wp_footer', 100 );

    Kiran

Viewing 15 posts - 1 through 15 (of 17 total)

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

Open Support Ticket