Home › Forums › Pro Support › Generate Blocks Buttons in WP Show Posts
- This topic has 12 replies, 4 voices, and was last updated 2 years, 9 months ago by
elvin.
-
AuthorPosts
-
December 2, 2020 at 7:10 am #23631
Mike
ParticipantI 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.
December 4, 2020 at 12:26 am #23752elvin
ModeratorHi,
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.
December 4, 2020 at 8:04 am #23768Mike
ParticipantThanks 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.
December 4, 2020 at 8:51 am #23770Mike
ParticipantI 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.
December 4, 2020 at 2:16 pm #23790Tom
KeymasterHi there,
Any chance you can link me to an example of this? It sounds like it should work fine.
December 4, 2020 at 6:24 pm #23800Mike
ParticipantI 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.
December 7, 2020 at 3:20 pm #23931Tom
KeymasterA staging site would be great if possible – happy to take a look if you’d like 🙂
December 8, 2020 at 2:32 am #23963Alexis
ParticipantHello,
How can I disable the taxonomy link please?
I have already added this functionadd_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
December 8, 2020 at 6:25 pm #24007elvin
ModeratorHi 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-12520December 9, 2020 at 1:49 am #24016Alexis
ParticipantThank 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
December 9, 2020 at 4:53 am #24025elvin
ModeratorThank 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
December 9, 2020 at 7:32 am #24035Alexis
Participantthanks ! perfect
December 10, 2020 at 5:41 pm #24104elvin
ModeratorNo problem. 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.