[Resolved] Generate Blocks Buttons in WP Show Posts

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Generate Blocks Buttons in WP Show Posts

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #23631
    Mike
    Participant

    I have GenerateBlocks installed. When I add a “button block” in a post, only the button text (with link) is displayed in the WP Show Post output. I’m trying to make things easy for my client, but I can do the buttons as Custom HTML blocks if the GenerateBlocks buttons won’t work with WP Show Posts.

    #23752
    elvin
    Moderator

    Hi,

    By default, there’s a CSS conflict between WP Show Posts and GenerateBlocks when it is inside the entry-content.

    Custom HTML or the default WP Core Button Block are known to work though. If you need buttons within the .entry-content, they should work.

    #23768
    Mike
    Participant

    Thanks Elvin,

    It’s a bit disappointing to learn that the two plugins from the same company don’t play well together. It is good to know it’s not something I did incorrectly.

    #23770
    Mike
    Participant

    I just tried the WP Core Button Block and it didn’t work either. Well, it worked but much of the styling was gone. It appears that the Custom HTML block is my only option if I want buttons in WP Show Posts.

    #23790
    Tom
    Keymaster

    Hi there,

    Any chance you can link me to an example of this? It sounds like it should work fine.

    #23800
    Mike
    Participant

    I was incorrect. I cleared the cache and the post with the WP Block Button displays the button in WP Show Posts. The GenerateBlocks button does not display. Instead, the button text displays as a link.

    The site in question is a new client site under development. I can PM you a link, or I can set up the same page on one my experimental dev sites. Now that I have the WP Block Button working it’s no longer much of a problem.

    #23931
    Tom
    Keymaster

    A staging site would be great if possible – happy to take a look if you’d like 🙂

    #23963
    Alexis
    Participant

    Hello,

    How can I disable the taxonomy link please?
    I have already added this function

    add_filter( 'wpsp_disable_image_link', 'tu_disable_links', 10, 2 );
    add_filter( 'wpsp_disable_title_link', 'tu_disable_links', 10, 2 );
    
    function tu_disable_links( $output, $settings ) {
        if ( 666 === $settings['list_id'] ) {
            return true;
        }
    
        return $output;
    }

    Sorry I didn’t create a new request. Sorry mishandling

    • This reply was modified 2 months, 3 weeks ago by Alexis.
    • This reply was modified 2 months, 3 weeks ago by Alexis.
    #24007
    elvin
    Moderator

    Hi Alexis,

    How can I disable the taxonomy link please?

    You’ll have to filter it with wpsp_terms_output

    Try Tom’s reply here:
    https://wpshowposts.com/support/topic/removing-links-from-all-taxonomy-items/#post-12520

    #24016
    Alexis
    Participant

    Thank you, but actually that’s not what I want. I just want the taxonomy not to be a link anymore but in span for example like the functions described above with the image and the title

    #24025
    elvin
    Moderator

    Thank you, but actually that’s not what I want. I just want the taxonomy not to be a link anymore but in span for example like the functions described above with the image and the title

    You can allow <span> within the strip_tag();

    add_filter( 'wpsp_terms_output', function( $output ) {
        return strip_tags( $output, '<span>' );
    } );

    Reference: https://www.php.net/manual/en/function.strip-tags.php

    #24035
    Alexis
    Participant

    thanks ! perfect

    #24104
    elvin
    Moderator

    No problem. 🙂

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.