Tagged: featured content
- This topic has 3 replies, 3 voices, and was last updated 8 years ago by Mahesh.
-
AuthorPosts
-
March 31, 2016 at 9:55 pm #88593krizgrizMember
Hi there!
I’m having issues with the homepage featured content; specifically, directing the links to open in a new window. The customizer provides a text input field titled “Target. Open link in new window?” Leaving the field blank or inputting text yields the same outcome. The value automatically defaults to target=”_self”
Investigating the code on the child page (adventurous-featured-content.php), something seems to be off in the operation. The parameters given are as follows:
if ( !empty ( $options[ ‘homepage_featured_base’ ][ $i ] ) ) {
$target = ‘_blank’;
} else {
$target = ‘_self’;
}Shouldn’t that mean that leaving the field empty will set the target value to _blank so that it opens in a new window? Why is it still defaulting to _self whether or not there is a value in the field?
Here’s my website: http://barefootwanderer.com/
In particular, I want that “Barefoot Wanderer Crafts” link to open in a new window, since it redirects outside of my site.Thanks for the help!
-KrizApril 1, 2016 at 10:40 am #88622MaheshKeymaster@krizgirz: There has been a little bug in the Adventurous Theme, that is why the issue arose. The input type should be a checkbox instead of text field. The issue will be fixed in the next update.
For now to avoid issue use Theme Options instead of Customizer for this option. Go to Dashboard=> Appearance=> Theme Options=> Featured Content=> Featured Content Option and Check on Check to open in new window option in
Target. Open Link in New Window?.
This will help for now. Sorry for the trouble.Regards,
MaheshApril 7, 2016 at 1:49 pm #88968woodfactParticipanthi there .
I too have the same problem I can not redirect futured content to another page.
I state that I ‘m not very good with codes and sincerely I did not understand your explanation .
could you help me ?thanks for the help!
BarbaraApril 7, 2016 at 4:11 pm #88977MaheshKeymaster@woodfact: Yes, there has been a little bug in the theme’s customizer, and our team is fixing it with some other updates. The issue will be fixed in the next update which will be available soon. Please use Theme Options instead of customizer. Please check the image in the link below:
http://goo.gl/JG3FCW
Hope this helps.Regards,
Mahesh -
AuthorPosts
- The topic ‘Homepage featured content not opening in new window.’ is closed to new replies.