G Gambuu23 Active Member 87 2016 8 425 Dec 25, 2016 #1 How to open a new tab (window) by using target="blank" Here is the code: PHP code - 44 lines - codepad Can someone fix it for me Cheers
How to open a new tab (window) by using target="blank" Here is the code: PHP code - 44 lines - codepad Can someone fix it for me Cheers
kaizer01 Active Member 1,131 2011 172 720 Dec 25, 2016 #2 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" target="_blank" rel="bookmark" title="<?php printf(__('Permalink to %s', 'dp'), get_the_title()); ?>"><?php the_title(); ?></a></h2> if you click the title it will open in the new tab Last edited: Dec 25, 2016
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" target="_blank" rel="bookmark" title="<?php printf(__('Permalink to %s', 'dp'), get_the_title()); ?>"><?php the_title(); ?></a></h2> if you click the title it will open in the new tab
G Gambuu23 Active Member 87 2016 8 425 Dec 25, 2016 #3 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" target="http://google.com" rel="bookmark" title="<?php printf(__('Permalink to %s', 'dp'), get_the_title()); ?>"><?php the_title(); ?></a></h2> If I click now it will open + a new window with google additionally? Also I want to click on the video there should happen Opening the video + a new window (tab) to google.com
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" target="http://google.com" rel="bookmark" title="<?php printf(__('Permalink to %s', 'dp'), get_the_title()); ?>"><?php the_title(); ?></a></h2> If I click now it will open + a new window with google additionally? Also I want to click on the video there should happen Opening the video + a new window (tab) to google.com
kaizer01 Active Member 1,131 2011 172 720 Dec 26, 2016 #4 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" target="_blank" onclick="window.open('http://www.google.com', '', 'width=auto,height=auto')" rel="bookmark" title="<?php printf(__('Permalink to %s', 'dp'), get_the_title()); ?>"><?php the_title(); ?></a></h2> wrap the video using anchor tag post your website so it easier to help you.
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" target="_blank" onclick="window.open('http://www.google.com', '', 'width=auto,height=auto')" rel="bookmark" title="<?php printf(__('Permalink to %s', 'dp'), get_the_title()); ?>"><?php the_title(); ?></a></h2> wrap the video using anchor tag post your website so it easier to help you.