• Resolved shovon5400

    (@shovon5400)


    Hi, thanks for the nice plugin. I’m facing a small problem while using it on my webpage. When I select the tag option as “Yes” in ‘Post Display Settings’, it works properly. But the tags are showing as ‘clickable’ and going directly to the URL. How can I disable the ‘clickable’ option of the tags, like I can do with the ‘Image clickable’ option?

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author YMC

    (@wssoffice21)

    Hi!

    The quickest way to disable tag clickability is to apply CSS styles to the tags, for example:

    .ymc-container .filter-content .posts-grid .post-card__tags .tag {
    pointer-events: none;
    }

    You can also use another method: use the Structural Builder to customize the post card (but this is a bit more complicated).

    Thread Starter shovon5400

    (@shovon5400)

    Hi, Yes, it worked. Thank you.

    Plugin Author YMC

    (@wssoffice21)

    Good luck!

    Thread Starter shovon5400

    (@shovon5400)

    Hello again, I need one more suggestion. I am using the ‘Excerpt’ option ‘YES’ and it is showing the archive layout correctly (on my webpage ‘Läs mer och kontakta mäklaren’), but the link to the archive layout in the plugin is not working. I want to use the ‘Excerpt’ option link as a button link (Link Target as new tab) in the post display settings. I think you understand my question. How can I do that?

    Plugin Author YMC

    (@wssoffice21)

    If the standard options don’t suit you, use a custom layout. This way, you have full control over your logic without relying on plugin settings.

    Thread Starter shovon5400

    (@shovon5400)

    Thanks for reply. Ok! I used a custom layout (https://www.ennons.com/hus-till-salu-1-2/). But the problem is still not solved. The “Excerpt” of the post is showing correctly. But the links inside the “Excerpt” are not working. How can I make the links inside the “Excerpt” work? Maybe I need to write something in the custom CSS class to make the “Excerpt” part work. Can you help me?

    Plugin Author YMC

    (@wssoffice21)

    The “Excerpt” field doesn’t support any HTML tags (all tags are removed). Therefore, if you need to display links or other tags, use the standard visual editor and store the styled text there. Then use it in the Structural Builder plugin. Here, the “Excerpt” component extracts plain text without any tags. To do this, use the “Shortcode” component instead and then paste the previously created shortcode into the Enter Shortcode field, for example, this one:

    add_shortcode( 'test_sc', function( $atts ) {
    $atts = shortcode_atts( array(
    'post_id' => get_the_ID(),
    ), $atts );

    $post_id = intval( $atts['post_id'] );
    $post = get_post( $post_id );

    if ( ! $post ) {
    return '';
    }

    $content = $post->post_content;
    $content = apply_filters( 'the_content', $content );

    return str_replace( ']]>', ']]>', $content );
    });

    This will allow you to display the desired tags with the text in the card.

    Thread Starter shovon5400

    (@shovon5400)

    Hi, thanks for your answer. I really don’t understand where to start. I’m a bit confused. Something simple would be nice.

Viewing 8 replies - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.