• Home
  • Get help
  • Ask a question
Last post 18 min ago
Posts last week 89
Average response time last week 30 min
All time posts 67734
All time tickets 10466
All time avg. posts per day 21

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#5908 – Facebook button not showing and Pinterst and Twitter just text links

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 23 July 2019 09:41 UTC
considerthis1
 
Despite being enabled Social Buttons are not showing up:
  • FB doesn't show appear at all;
    Twitter and Pinterest are just text link

If I try to add via tag they do work at all.
If I add the following scripts to my template
<script type="text/javascript">
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<script type="text/javascript">
window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function(f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));
</script>
The buttons show up but do not pull any image.
What did I do wrong?
Thanks
Tuesday, 23 July 2019 09:50 UTC
wb_weeblr
Hi,

There is nothing to do to use the buttons so you cannot have done anything wrong. The symptoms you describe indicates that the scripts from FB/Twitter/etc are not running or fail. THis is typically because of a javascript error happening on your page - which then breaks other rendering. I can't say much more without an actual page to look at but you can already look at your browser console, there might be some useful information there.

Other things to try are:

- temporarily switching to one of Joomla built-in templates as your template might be doing its own things with social sharing
- disabling any other extension you may have that deals even remotely with social media buttons

In addition:

- test this with Chrome, not Firefox or Brave which might block FB and Twitter feeds
- clear Joomla and browser cache between each attempts

Best regards
 
Tuesday, 23 July 2019 11:26 UTC
considerthis1
Hi,

I did switch to protostar but it didn't work.
I can't find any plug-in or extension that deals with social media, anyhow, I tried to disable the ACF field for Facebook video but the end result has been to make the twitter link to disappear altogether.
We couldn't find any problem / issue with my browser console.
I only use Chrome.
If you need to cast an eye on the page of my screenshot here is the URL https://xxxx.co.uk/news-events/whats-on/women-of-troy
I'm currently working on a new design for this site, therefore it seats on a not public subdomain
Kind regards

Tuesday, 23 July 2019 11:32 UTC
wb_weeblr
Hi

OK, that's different. As you can see on this screenshot, the shortcode you are using is not even interpreted:



You can also see left out in the content some internal content that should be replaced with links to the FB scripts:



So there absolutely something on your site that destroy sh404SEF. Maybe you are using a page builder of some kind?

Best regards

 
Tuesday, 23 July 2019 12:03 UTC
considerthis1
no page builder.
You can find the list of components installed in the attached screenshot
If you want, I will set a user for you to give you access to the backend.
Tuesday, 23 July 2019 12:40 UTC
wb_weeblr
Hi,

ok, yes, please provide us with superadmin credentials to your website. You can create a temporary account, and delete it afterward, but it must have superuser level.

Thanks and regards
 
Tuesday, 23 July 2019 13:17 UTC
considerthis1
Please, reach this URL
https://xxxx.co.uk/administrator/?ct4lra

user: xxxx
password: xxxx

I will take it down at 18.00pm UK time.
Thanks for your support
Tuesday, 23 July 2019 14:46 UTC
wb_weeblr
Hi

OK, I'm a bit confused now: I checked everything I could, to no avail. Then downloaded you last akeeba backup to install on my machine try debug the issue. Realized after checking several things that the backup was from earlier today and configuration did not seem to be quite the same (social buttons were not from sh404SEF basically but instead a module. So I triggered a new backup, downloaded that, installed locally, went through settings and other stuff. Then back to sh404SEF and realized... it was not enabled?

So went back to your site and checked and... sh404SEF was not enabled. So I just clicked the button to enable it.



Please advise. Has anything else changed in the mean time?

Best regards
 
Tuesday, 23 July 2019 15:57 UTC
considerthis1
I see, you did enable URL optimisation.
In this way the buttons works but it changed the URL and that an old page that I am currently using to create a new design
OLD URL https://xxxx.co.uk/news-events/whats-on/women-of-troy that matches https://xxxx.uk/news-events/whats-on/women-of-troy (now archived)
NEW URL https://xxxx.co.uk/shows/the-women-of-troy which is the URL I want to assign in the new site, to be honest.

My problem is that in my plan the URL optimisation was meant to be triggered as very last step, once I have a map of all the redirections to put in place.

There is no way I can make it work without URL optimisation? Or there is a way to keep the current Joomla routing till I'm ready to trigger the URL optimisation?
Finally, sorry to be so annoying and naive, do you know how I can exploit sh404sef to allow my client to create certain pages without menus? I see on other sites that when they do that the new page keeps the category heading and I can't find a way to show modules assigned to the sidebar correctly.

Thanks for your support, it has been very helpful and seeing the buttons reassured me

Tuesday, 23 July 2019 16:06 UTC
wb_weeblr
Hi

I see, you did enable URL optimisation.
Without that, sh404SEF is entirely disabled, it's like it' s not installed at all.

but it changed the URL
Yes, that's one of its purpose actually.

There is no way I can make it work without URL optimisation? Or there is a way to keep the current Joomla routing till I'm ready to trigger the URL optimisation?
If it's temporary, you can:

- select "Use Joomla router" for all components under the "By component" tab of sh404SEF configuration

This will prevent some features to work but not those design-related. For instance the 404 URL page will likely not work properly.

Finally, sorry to be so annoying and naive, do you know how I can exploit sh404sef to allow my client to create certain pages without menus?
Sh404SEF does not use menu items at all for URL so, yes, that's rather easy. What you do need though is a link to such page, somewhere on the site. When that link is displayed, that's when the SEF URL is created.

and I can't find a way to show modules assigned to the sidebar correctly.
That's more a Joomla problem as Joomla uses menu items to assign modules (and templates). So you do need to somehow relate a page to a menu item to be able to assign modules and template to it.
However with sh404SEF, the menu item title is not used when building the URL so this might be what you are looking after.

For instance, you have your menu item "News & events" and then "News". Assuming this menu item is a "category blog" type, then all articles links showing under the menu item will be assigned by Joomla to the "News & events" -> "News" menu item. If you assign a module to that menu item, it will be displayed on all the articles. However the articles URLs will NOT have /news-events/news/ in them, they'll be based on the category/article-title by default (but you can change that).

Best regards
 
Tuesday, 23 July 2019 16:54 UTC
considerthis1
Thanks!
Wednesday, 24 July 2019 06:37 UTC
wb_weeblr
Hi

Sh404SEF does not use menu items at all for URL so, yes, that's rather easy. What you do need though is a link to such page, somewhere on the site. When that link is displayed, that's when the SEF URL is created.
You're welcome!

Sh404SEF does not use menu items at all for URL so, yes, that's rather easy. What you do need though is a link to such page, somewhere on the site. When that link is displayed, that's when the SEF URL is created.
In addition to the above, I'd like to add that even having such a link is not always necessary - For instance, it can be an issue for creating "landing pages" which are supposed to be reached through a newsletter click or maybe ads. Those pages normally should not be linked from the content. You can create menus for them that you hide by setting them as "superadmin" access level for instance.

And another option is to simply manually create the URL in the SEF URL manager (using the "New" button). That way you can assign any menu item you like in the non-sef URL, as it's you typing it in.

Closing this ticket now, feel free to open a new one as needed. If you do so, please mention this ticket number in the new one.

If you created any superadmin account for us, be sure to delete or block it now to avoid unnecessary risk in the future.

Be sure to also check out wbAMP, our new Accelerated Mobiles pages plugin for Joomla - the next big thing is SEO, direct from Google themselves!



Best regards

 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.