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?
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