-
AuthorPosts
-
August 2, 2015 at 12:43 pm #481759
hi. what code must i add to open all links in blog grid in new window by default. http://imgur.com/XpEsFLW
August 3, 2015 at 4:53 pm #482256Hey wiwaldi79!
Please add following code to Functions.php file in Appearance > Editor
function add_custom_target(){ ?> <script> jQuery(window).load(function(){ jQuery('article.slide-entry a').attr('target','_blank'); }); </script> <?php } add_action('wp_footer', 'add_custom_target');Regards,
YigitAugust 3, 2015 at 5:48 pm #482322Thanks yigit, but the website do not open at all when i add the code ;(
August 3, 2015 at 5:50 pm #482326August 3, 2015 at 5:57 pm #482337Ok thanks, but i do not see the effect. http://www.alfaweb.at/testwaldi/ try the blog at end of page ;(
cache cleared!
August 3, 2015 at 7:40 pm #482376And do you have any idea how i can fix this error. https://kriesi.at/support/topic/error-at-contact-form/#post-482279 i try to get this done for weeks ;( Thank yous sooooo much ;)
August 6, 2015 at 8:24 am #483722Hi!
Please replace the code with this:
function add_custom_script(){ ?> <script> jQuery('.slide-entry a').each(function() { jQuery(this).attr('target', '_blank'); }); </script> <?php } add_action('wp_footer', 'add_custom_script');Regards,
IsmaelAugust 10, 2015 at 9:57 am #485108Thank you yigit. But i do not have this code. Whitch code should i delete in my functions.php?
`
August 11, 2015 at 1:30 pm #485916August 11, 2015 at 4:34 pm #486051Thanks Yigit. but the error is still there.
The contact form do not work correct ;( here the numbers don`t disapear –> http://i.imgur.com/Lr5PXCn.jpg and i always see the title of the contact form but NOT the sucessfull sent message ;( –> http://i.imgur.com/ufy96v4.jpg
August 11, 2015 at 4:42 pm #486054Hey!
Please start a new thread and elaborate on the other issue you are having. This thread’s goal is to “open all links in blog grid in new window by default” and that should be working.
Best regards,
YigitAugust 12, 2015 at 12:38 pm #486461Oh sorry, this was about the grid. my mistake. Closed! Thanks sooooooo much!
AMAZING!!!!!!CLOSED!
And i opend a new thread like requested :)
https://kriesi.at/support/topic/contact-form-73/
-
This reply was modified 10 years, 3 months ago by
wiwaldi79.
-
This reply was modified 10 years, 3 months ago by
-
AuthorPosts
- The topic ‘open all links in blog grid in new window by default.’ is closed to new replies.
