support@gracethemes.com

Homepage slider – read more button

Home Support MedPlus WordPress Theme Homepage slider – read more button

This topic contains 4 replies, has 2 voices, and was last updated by  Tomas Minnen 1 year, 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1890

    Tomas Minnen
    Participant

    I have made a link to an external website using the ‘read more’ button on the homepage slider. Is there a way to force that external website to open in a new window?

    #1891

    Grace Themes
    Keymaster

    Hi,

    To open a image slider link in new tab needs to add some code (target=”_blank”) in anchor tag

    Go to Appearance -> Editor -> header.php file

    
    Find in line no. 113 
    <a href="<?php echo of_get_option('slideurl'.$sln, true); ?>">
    
    and relpace with 
    <a href="<?php echo of_get_option('slideurl'.$sln, true); ?>" target="_blank">
    
    Find at line no. 119 
    <a class="button" href="<?php echo of_get_option('slideurl'.$sln, true); ?>">
    
    and replace with
    <a class="button" href="<?php echo of_get_option('slideurl'.$sln, true); ?>" target="_blank">
    
    • This reply was modified 1 year, 4 months ago by  Grace Themes.
    #1893

    Tomas Minnen
    Participant

    Thanks, but the ‘editor’ is not available in my ‘Appearance menu’…
    How can I enable that.

    #1895

    Tomas Minnen
    Participant

    Forget my last post; I managed to enable the ‘editor’ via the wp_config.php file

    #1896

    Tomas Minnen
    Participant

    OK, thanks for the solution. This worked fine!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.