How to set rel="nofollow" for Action Button linkout in Header

edited February 2020 in Theme Options
Hi Team,

Thank for your Great Theme and it's me again.

I would like to add rel="nofollow" for the link of Action Button in Header Menu. 
Do you know where i can add it ? Because there is no option to set this nofollow in Theme Option as Social Icon.


Hope to receive your feedback.

Thank You & Best Regards,
Hai Anh.


Comments

  • Hey,
    sorry but we do not have such an option available.
    You would have to add it with JS or by editing the theme files. Sadly we do not support such changes due to the theme policy.
    thanks
  • Hi Bryan,

    Thank for your feedback. I can change the theme code by myself. Please kindly show me the Action hook so i can add the Action to the file header-to-bar-right.php" theme.

    Bellow is the replace scipt i will change in theme via hook.
    echo '<a rel="nofollow" href="'. esc_url($action_link) .'" class="action_button'. esc_attr($action_class) .'" '. wp_kses_data($action_target) .'>'. wp_kses(mfn_opts_get('header-action-title'), mfn_allowed_html('button')) .'</a>';
  • Sorry, but we do not help with the theme files customizations.
    Surely, you will have to edit the theme files to achieve that, or a JS code which will replace it.
    All of the JS codes should be inserted in the Theme Options > Custom CSS & JS > JS
    Thanks
Sign In or Register to comment.