- April 22, 2016 at 12:28 #1512
It needs to change Header information section URLs in header.php file.
RegardsApril 29, 2016 at 12:05 #1533
Thank you Baxter, You have pointed me in the right direction.
For anyone else having this issue. in the header.php file, there is a WordPress function wp_kses which was stripping the anchor tag which needs to be updated to allow it.July 25, 2016 at 11:52 #1939
I am having the same problem. I am using header 4 and tried to do this -> doesn’t work. Could you help me on wich line i have to edit what?
Thanks!August 16, 2016 at 10:30 #2034
I noticed the line number changes from version to version, here’s an example of what you need to do.
Open up header.php and look for:
<div class=”text”><?php echo wp_kses( nl2br( $header_phone ), array( ‘br’ => array(), ‘strong’ => array(), ‘span’ => array(‘data-scroll-to’ => array()) ) ); ?></div>
Update the line to:
<div class=”text”><?php echo wp_kses( nl2br( $header_phone ), array( ‘a’ => array(‘href’ => array()), ‘br’ => array(), ‘strong’ => array(), ‘span’ => array() ) ); ?></div>
Saved the updated header.php file in the child theme’s directory.
The example shown above is for $header_phone, but you will also need to do this for $header_hours and $header_address too if you want to allow links in those fields too.
Hope that helps.
You must be logged in to reply to this topic.