Forum Replies Created
-
AuthorPosts
-
Aakash ChakravarthyKeymaster
Marking this as resolved
June 2, 2021 at 11:04 pm in reply to: Use a shortcode in a template or reusable code and share #9529Aakash ChakravarthyKeymasterHi @Mathematica
Thanks for using WP Socializer.
It seems strange. May be as you guessed, the shortcode is getting executed by the template.
I’m not sure how this “templatera” works nor I use WP bakery that is not a free plugin.
But I can assess the issue faster or provide workaround if you can have a live look at the website.Can you please create a temp admin user and share the the details via contact form ?
If you are new to this, you can also use plugins like https://wordpress.org/plugins/controlled-admin-access/ to restrict certain pages and let me use only the pages you need me to see.
Thanks,
AakashAakash ChakravarthyKeymasterHi DPNOnline,
Please use my contact form to send your page URL where this issue is seen.
I’ll have a look.
Thanks,
AakashAakash ChakravarthyKeymasterHi DPNOnline,
This error seems not related to Announcer. This error is supposed to be thrown by “react” application which announcer does not use.
Can you please share your webpage where I can see this issue ?
I’ll let you know which application is breaking the site.Thanks,
AakashAakash ChakravarthyKeymasterHi, can you please share more details on the issue ?
Aakash ChakravarthyKeymasterHi Julia,
It seems we may never get Facebook share count for applications like this.
Facebook has stopped this considering some “privacy concerns” (not sure what)
Reply from facebook support below.
https://developers.facebook.com/support/bugs/318897266426699/?comment_id=319463206370105I’ll update the plugin on the same.
Thanks,
AakashAakash ChakravarthyKeymasterHi Julia,
I received the email.
The APP ID and the keys look good. No issues in that.
It seems like a Facebook is not returning the correct count for external people.I saw the count using other tools outside, they all return 0.
This is some problem on the Facebook side and beyond our control.
I think you can ignore this for now and have a look after some days.You can also manually check the count on this page – https://www.sharedcount.com/
If you can see a count there, your website should also show one.Thanks,
AakashAakash ChakravarthyKeymasterHi Julie,
Yes, as I can see in facebook the page has 11 likes.
I think there is some issue with the API key.
I need to see the error thrown by Facebook.Can you please share the Facebook app ID and app secret you have configured under WP Socializer –> Settings page to my contact form below ?
PS: You have a nice website there !
Thanks,
AakashAakash ChakravarthyKeymasterHi Julia,
Thanks for using WP Socializer.
It is not required for the app to be verified.
Can you please share a blog post which had some like count ?
Let me see what went wrong.Thanks,
AakashAakash ChakravarthyKeymasterCan you please share more information on what you tried and what was not working ?
Aakash ChakravarthyKeymasterHi Bradley,
Thanks for using Announcer.
I believe you want to run some javascript when clicking CTA button right ?
In that case you can simply create a
<script>
tag and add your JS under that.
You can target the “primary” button with the below selector.var announcement_btn = document.querySelector('#ancr-471 .ancr-btn-primary'); announcement_btn.addEventListener('click', function(){ //<my code> });
Replace 471 with your announcement ID and in my code use to triggger whatever needed.
Thanks,
AakashAakash ChakravarthyKeymasterHi @jobl32,
Sorry for the late reply.
With UFW plugin, you can put your widgts in a floating popup and open that with a button.
Since the button’s primary purpose is to open the popup, it does not act as button to open links.
Hope you understand.
Thanks,
AakashAakash ChakravarthyKeymasterHi @grumble,
You can simply use relative path (i.e just /terms if that page is at the root of the site) or you can use like below using “site url” paramter.
<a href="$$site_url$$/disclosure">Disclosure page</a> <a href="$$site_url$$/terms">Terms</a>
Thanks,
AakashAakash ChakravarthyKeymasterExcellent ! do_shortcode is the one which executes the shortcode. Glad that you figured out on what to execute as per your theme.
Thanks,
AakashAakash ChakravarthyKeymasterHi,
It seems the widget is not “executing” the shortcode. It is printing the shortcode as is.
Can you please check with “TG: Product slider” developer to “execute” shortcodes in their widget ?
This applies not only to shortcoder but any shortcode.
Thanks,
Aakash -
AuthorPosts