WordPress Website Templates

Find Professional WordPress themes Easy and Simple to Setup

inner banner

HELP for Link!!!

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #3533
    Willians
    Participant

    My name is Willians, in the section “Our Projects” how to make the link open on the same page and not on another page as in the template.

    My them is Creator World PRO.

    Grateful.

    #3537
    Grace Themes
    Member

    Hi Willians,

    To open the link on the same page in ‘Our Projects’ section

    Go to the Appearance -> Editor -> inc/custom-header.php

    at line no 693 you will find the below code

    return '<div class="item '.$clear.'"><a href="'.$link.'" target="_blank"><h5>'.$title.'</h5><img src="'.$image.'" /></a></div>';

    just remove the target=”_blank” from this code

    return '<div class="item '.$clear.'"><a href="'.$link.'"><h5>'.$title.'</h5><img src="'.$image.'" /></a></div>';

    Regards
    Grace Themes

    #11782
    martinfrance1
    Participant

    Hi guys
    I guess the code has changed since this earlier question as I can’t find that code snippet in the suggested place? I have the same question-how do I stop the items in the ‘Our Projects’ section opening a new browser tab with each click?

    #11788
    Grace Themes
    Member

    Hi martinfrance1

    Please send your website URL and WordPress admin login details for temporary at [email protected] so we can check and assist you quickly.

    We will happy to help you.

    Regards
    Grace Themes

    #11791
    martinfrance1
    Participant

    Hi guys

    Many thanks for getting on this one so quickly.

    I’m still developing locally and not keen to upload until I fix this. I notice that your own ‘demo’ site at http://gracethemes.com/demo/creator-world-pro/ behaves exactly the same way – if you click on the images in the ‘Our Projects’ section then it opens a new tab. Can you diagnose from the demo version?

    (I notice that if you click on an image in the ‘Our team’ services then it does not open a new tab, much better for my purposes).

    Thanks again

    Martin

    #11796
    martinfrance1
    Participant

    Found it! For anyone else interested, the code in question is actually in custom-functions.php, line 693. Edit it as described above and the projects section will no longer trigger a new browser tab.

    #11798
    Grace Themes
    Member

    Hi martinfrance1,

    Basically this Project section is coded to open the link of any external project in new tab.
    And yes you can remove the code arget="_blank" from custom-functions.php, line 693 to open the link in same tab.

    Thank you so much for the effect to change code your own way.

    Regards
    Grace Themes

    #11799
    Grace Themes
    Member

    Hi martinfrance1,

    Basically this Project section is coded to open the link of any external project in new tab.
    And yes you can remove the code target="_blank" from custom-functions.php, line 693 to open the link in same tab.

    Thank you so much for the effect to change code your own way.

    Regards
    Grace Themes

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.