HELP for Link!!!
- This topic has 7 replies, 3 voices, and was last updated 5 years, 7 months ago by Grace Themes.
-
AuthorPosts
-
March 14, 2017 at 7:49 pm #3533WilliansParticipant
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.
March 15, 2017 at 5:22 am #3537Grace ThemesMemberHi 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 ThemesNovember 6, 2018 at 12:52 am #11782martinfrance1ParticipantHi 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?November 6, 2018 at 4:26 am #11788Grace ThemesMemberHi 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 ThemesNovember 6, 2018 at 10:15 am #11791martinfrance1ParticipantHi 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
November 7, 2018 at 2:09 am #11796martinfrance1ParticipantFound 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.
November 7, 2018 at 6:05 am #11798Grace ThemesMemberHi martinfrance1,
Basically this Project section is coded to open the link of any external project in new tab.
And yes you can remove the codearget="_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 ThemesNovember 7, 2018 at 6:05 am #11799Grace ThemesMemberHi martinfrance1,
Basically this Project section is coded to open the link of any external project in new tab.
And yes you can remove the codetarget="_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 -
AuthorPosts
- You must be logged in to reply to this topic.