Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #844495

    I have a custom php script that determines a persons location and outputs a local phone number and i need to be able to echo that phone number in multiple places on a page. I have been able to get the script to run and display the resulting number but instead of the number showing up where i want it to, it shows up just under the header, out of the block i put it in.

    Any ideas?

    #844508

    Hey MAR,
    Without seeing the code, or exactly were you want it, it’s kind of hard to say. Try testing line by line, if inside a php function use echo.
    Another option would be to create a shortcode for your output in functions.php, then try using the front end to place your shortcode.
    Or you could try moving up into place with css with top: -10px

    Best regards,
    Mike

    • This reply was modified 7 years, 2 months ago by Mike.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.