Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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
    -Dan

    #1035818

    Hey acscreativenew,

    On the first one I do not see the phone on the top at all – is it removed?

    Best regards,
    Basilis

    #1035826

    Yea, 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
    -Dan

    #1038156

    Hi,
    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 javascript

    Best regards,
    Mike

    #1038177

    I 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

    #1038331

    Hi,
    That is great news! So you believe that ACF was injecting it? That was a strange issue, but glad to hear it solved now.
    Unless there is anything else we can assist with on this issue, shall we close this then?

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.