-
AuthorPosts
-
November 16, 2018 at 7:59 pm #1034571
Hi,
So on my site im using a google translate plugin for simple translations.
You can see it in my header See Link 1. What I did was add a short code to the “Phone Number or Small Info Text” within the header settings. This seems to be working for all of my pages EXCEPT the page im using a custom template for. You can see that page here See Link 2.
It seems to be pulling in maybe an old value? Not sure how that is happening.
Any ideas on how to get my custom page template to use the same header as the rest of the site, or I believe its already using the same header but just making sure is pulls updated content from the phone number section?
Thanks
-DanNovember 20, 2018 at 11:15 pm #1035818Hey acscreativenew,
On the first one I do not see the phone on the top at all – is it removed?
Best regards,
BasilisNovember 20, 2018 at 11:31 pm #1035826Yea, thats part of the problem. The phone number should not be showing at all. If you look in my setting and look at the place within the setting where you add the text or phone number there you will see i have a google translate short-code. It works on all pages except for the page im using a custom template on.
I want the language selector to work on all pages and the phone number to go away.
Thanks
-DanNovember 27, 2018 at 7:29 pm #1038156Hi,
Sorry for the late reply, this is a odd issue, From what I can see your shortcode should be showing instead of the phone number, and I can’t find where the phone number is coming from, because it not in your Phone Number or small info text field.
I suspect that the phone number is in the page meta data, I see the for your custom post type the screen option “Custom Fields” is not an option, perhaps it is saved in your database from the beginning of your project? Does the number look familiar at all?
So to work around this perhaps you can copy the header.php and add it to your template, or perhaps you can use jQuery to replace the number with the shortcode: call shortcode in javascriptBest regards,
MikeNovember 27, 2018 at 8:03 pm #1038177I was able to find it in the DB, for some reason it was injecting it there. I did at one point have a ACF set up with the name of “Phone” and use that but i have removed it.
Not sure what the exact issue was but its fixed now.
Thanks for the help.
-Dan
November 28, 2018 at 5:50 am #1038331 -
AuthorPosts
- You must be logged in to reply to this topic.