Problem with custom HTML in header. - by DImitris

This topic has 2 replies, 2 voices, and was last updated 6 years, 11 months ago ago by Rose Tyler

  • Avatar: isengart
    DImitris
    Participant
    May 12, 2017 at 07:44

    I have created some custom HTML in header for socials in my website. When I write the HTML I am on Text tab.

    The problem is if I change to Visual from Text. Then all my HTML disappears and if I save the Theme Options, my social disappears.

    How can we fix that?

    Please, contact administrator
    for this information.
    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 15, 2017 at 09:27

    Hello,

    Sorry for the delay.
    Try to use [share] shortcode to Header custom HTML block https://www.8theme.com/demo/docs/royal/#!/7_royal_shortcodes
    You need edit the file wp-content/themes/royal/framework/shortcodes.php (find the section “! Share This Product”).
    For example, for facebook link you need change the following code
    <a href="http://www.facebook.com/sharer.php?u='.$permalink.'" class="'.$tooltip_class.'" title="'.__('Facebook', ET_DOMAIN).'" target="_blank">
    with your link
    <a href="here is your link" class="'.$tooltip_class.'" title="'.__('Facebook', ET_DOMAIN).'" target="_blank">
    Also we recommended to make all changes in the Child Theme.
    https://www.8theme.com/demo/docs/royal/index.html#!/2_child_theme
    https://codex.wordpress.org/Child_Themes

    Regards,
    Rose Tyler.

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.