nestormarius
Forum Replies Created
-
Forum: Plugins
In reply to: [Secondary Title] Plugin messes with social sharing buttonsThe Facebook and Linkdin share buttons work as expected (they’re not affected).
Forum: Plugins
In reply to: [Secondary Title] Plugin messes with social sharing buttonsI’ve added the filter you send me to functions.php but it doesn’t work. The error persists. For other social buttons, the output is a bit different. For example, on the Toot (Mastodon) button the URL is replaced only with “brspan class”.
The Reddit sharing button on the other hand gets the URL, but the “brspan class” thing appears next to the title.
Forum: Plugins
In reply to: [Secondary Title] Plugin messes with social sharing buttonsThere’s no plugin for the social buttons, they are implemented in the theme. The theme is called Bam Pro and it’s a commercial theme. You can check out a demo version on the official website (https://themezhut.com/demo/bam-pro/be-happy-for-this-moment-this-moment-is-your-life/). I’ll paste below the entire code for the social sharing buttons, but they are adjusted to my needs.
BTW, all the social sharing buttons are affected by this bug, not only the Twitter button. More specifically, the $bm_current_url variable is affected in some way when the page has a secondary title.
RSS issue I believe it’s similar.
/** * Social Sharing Icons. */ if ( ! function_exists( 'bam_social_sharing_buttons' ) ) { function bam_social_sharing_buttons( $container_class = "" ) { if ( ! is_singular() ) { return; } global $post; // Get current page URL $bm_current_url = urlencode( get_permalink() ); // Get current page title $bm_post_title = str_replace( ' ', '%20', get_the_title() ); $post_thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); $bm_share_thumbnail = ( $post_thumbnail ) ? $post_thumbnail[0] : ''; // Construct sharing URL without using any script $twitter_url = 'https://twitter.com/intent/tweet?via=9to5linux&hashtags=Linux&text=' . $bm_post_title . '&url=' . $bm_current_url; $facebook_url = 'https://www.facebook.com/sharer/sharer.php?u=' . $bm_current_url; $reddit_url = 'https://reddit.com/submit?url='. $bm_current_url .'&title='. $bm_post_title; $mastodon_url = 'https://toot.kytta.dev/?text='.$bm_post_title . '%20' . $bm_current_url; $linkedin_url = 'https://www.linkedin.com/shareArticle?mini=true&url='. $bm_current_url .'&title='. $bm_post_title; //$whatsapp_url = 'whatsapp://send?text='.$bm_post_title . ' ' . $bm_current_url; // Add sharing button at the end of page/page content $content = '<div class="bm-social-sharing '. esc_attr( $container_class ) .'">'; $content .= '<a href="'. esc_url( $twitter_url ) .'" target="_blank" rel="noopener"><i class="fab fa-twitter"></i>' . __( 'Tweet', 'bam-pro' ) . '</a>'; $content .= '<a href="'. esc_url( $mastodon_url ) .'" target="_blank" rel="noopener"><i class="fa fa-mastodon" style="padding: 0 5px 0 0;"></i>' . __( 'Toot', 'bam-pro' ) . '</a>'; $content .= '<a href="'. esc_url( $facebook_url ) .'" target="_blank" rel="noopener"><i class="fab fa-facebook-f" aria-hidden="true" style="padding: 0 0 0 5px;"></i>' . __( '', 'bam-pro' ) . '</a>'; $content .= '<a href="'. esc_url( $reddit_url ) .'" target="_blank" rel="noopener"><i class="fab fa-reddit-alien" aria-hidden="true" style="padding: 0 0 0 5px;"></i>' . __( '', 'bam-pro' ) . '</a>'; $content .= '<a href="'. esc_url( $linkedin_url ) .'" target="_blank" rel="noopener"><i class="fab fa-linkedin" aria-hidden="true" style="padding: 0 0 0 5px;"></i>' . __( '', 'bam-pro' ) . '</a>'; //$content .= '<a href="'. esc_url( $whatsapp_url ).'" target="_blank" rel="noopener"></a>'; $content .= '</div>'; echo $content; } }
- This reply was modified 1 year, 11 months ago by nestormarius.
- This reply was modified 1 year, 11 months ago by nestormarius.
- This reply was modified 1 year, 11 months ago by nestormarius.
Forum: Plugins
In reply to: [Secondary Title] Plugin messes with social sharing buttonsSorry, but I don’t see any logs on the Site Health page. Only the site info is available to copy… maybe I’m missing something? It looks like WP_DEBUG_LOG is set to false, could that be the issue?
BTW, Secondary Title also messes with the RSS feeds. If a new post is published with a secondary title, the secondary title also appears next to the post’s title in the RSS feed. Any idea how to fix this?
- This reply was modified 1 year, 11 months ago by nestormarius.
Forum: Plugins
In reply to: [Secondary Title] Plugin messes with social sharing buttonsThank you for your quick reply. I’ve enabled the plugin to let you reproduce the bug, but I just discovered that if the secondary title field is not filled there’s no bug. If I write something in the secondary title field in the Gutenberg editor, the bug appears. So…
The plugin is now enabled on the site. Go to the article linked in my first post and click on the Tweet button to share it on Twitter. In the pop-up window, you’ll see the error (
brspan class='secondary-title' style='color:
instead of the page URL).Go to this article (https://9to5linux.com/9to5linux-weekly-roundup-december-11th-2022) that doesn’t have a secondary title to see how the Tweet button should actually work even if Secondary Title is enabled.
I’ll post the Site Health logs shortly…
Unfortunately, it doesn’t… and because of that it affects the plugin update system.
Please add PHP 8 support, thank you!
PS: Great work with this awesome plugin!
Hi, I’ve updated to v6.0.4 and it looks like we’re making progress ?? The widgets appear, but when I scroll them they quickly disappear. Any ideas?
I see v6.0.2 is now officially out with a fallback mode for themes that don’t support the newer settings, but it’s still not working with my theme ??
I guess I forgot to mention that the fixed widgets I use with AdSense are provided by the Ad Inserter plugin. Maybe I should add them manually?
If I disable the ads on the website, the fixed widget works without issues, so it looks like the problem is with AdSense code indeed.
I will downgrade to v5.3.0 for now. Thank you for your help!
- This reply was modified 2 years, 10 months ago by nestormarius.
Check this /9to5linux-weekly-roundup-january-23rd-2022
or this /top-10-best-alternatives-to-raspberry-pi-os-for-your-raspberry-pi-computer
- This reply was modified 2 years, 10 months ago by nestormarius.
- This reply was modified 2 years, 10 months ago by Jan Dembowski.
I guess you’re right. Check the website now, I’ve added a test widget at the bottom of the sidebar and it works, but for some reason it scrolls with the last AdSense widget. What do you suggest I do next? Thank you!
Hi Thomas, I’ve enabled v6.0.2. Should I also enable the “Test new version” option?
P.S. I will disable it in 1 hour. Thank you!
Forum: Plugins
In reply to: [Lightbox for Gallery & Image Block] Apply to all post images optionHi Johannes,
First, congratulations on the amazing work with this plugin. Second, related to the OP question, I would like to know if adding the add_filter(‘option_image_default_link_type’, fn () => ‘file’); snipped to wp-includes/functions.php will set the “Link to” to “Media File” retroactively (for all existing posts).
Thank you!
Forum: Plugins
In reply to: [Yoast SEO] wordpress 5.5 yoast seo panel problemInstalling the Enable jQuery Migrate Helper plugin did the job. Thank you!
Edit: On another WordPress 5.5 install the Yoast SEO plugin didn’t broke, probably because I had the “jQuery Updater” plugin installed already. So it looks like it’s a jQuery issue…
- This reply was modified 4 years, 3 months ago by nestormarius.
- This reply was modified 4 years, 3 months ago by nestormarius.
Forum: Plugins
In reply to: [WP Last Modified Info] Shortcode no longer workingI have the same problem, the last modified info is no longer being displayed at the end of the post. On top of that, when I update a post it will now appear first, above all recent posts. I had to disable the plugin… please suggest a solution to this problem. Thank you!
Edit: Disabling the “Enable for Posts/Pages on Frontend” option no longer places the modified post above all recent posts.
However, the last modified info is still not being displayed on any post… it just disappeared…- This reply was modified 4 years, 3 months ago by nestormarius.