Hero Unit target="_blank"

  • Posted in : Responsy WP
  • timcrob
    Participant

    Is there a fix for the shortcode or a code tweak that will enable the Hero button to open in a new tab/window? I’ve tried adding target=”_blank” within the shortcode but have had no luck. Any ideas?

    Thanks for the support!

    Mehmet S.
    Keymaster

    Go to Appearance > Editor > functions.php

    – find the line:

    $hero_button_out =  '<p><a href="' . $hero_button_link . '" class="btn ' . $hero_button_type . ' btn-large"><b>' . $hero_button_title . '</b></a></p>';
    

    – add target="_blank"

    $hero_button_out =  '<p><a target="_blank" href="' . $hero_button_link . '" class="btn ' . $hero_button_type . ' btn-large"><b>' . $hero_button_title . '</b></a></p>';
    
    timcrob
    Participant

    Thank you!

    nelisseos
    Participant

    Is their a way to remove the button from the Hero?

    Mehmet S.
    Keymaster

    Paste to Theme Settings > Style > Custom CSS:

    .hero-unit .btn { display: none; }
    
Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘Responsy WP’ is closed to new topics and replies.