Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #325354

    Im trying to add a short code or php code under Enfold-Header layout-Extra Element to insert a text banner so If I scroll down it gets fixed to the header and doesn’t move with the scroll

    #325376

    Hi Luis,

    You’d need to enable shortcode rendering there first, open /enfold/includes/helper-main-menu.php and look for line:

    if($phone) 		{ echo "<div class='phone-info {$phone_class}'><span>{$phone}</span></div>"; }
    

    Replace it by this:

    if($phone) 		{ echo "<div class='phone-info {$phone_class}'><span>".do_shortcode($phone)."</span></div>"; }
    

    Regards,
    Josue

    #325394

    Ok
    thank you very much Josue.
    Regards

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘short code in header extra’ is closed to new replies.