Viewing 2 replies - 1 through 2 (of 2 total)
  • go to this section in the php code and overwrite the first line (seen below with the second line

    ///////////////////////////////////////////////
    this final section generates all the code that
    is displayed on the front-end of the WP Theme
    \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

    echo ‘‘;
    echo ‘
    ‘;

    Here is my solution to this that I’ve used, I found it to be easier than creating a lot of other code to handle a checkbox and new option and blah blah to handle it.

    In wp-cycle.php, 417 change the line

    if($data['image_links_to'])
    			echo '<a href="'.$data['image_links_to'].'">';

    to

    if($data['image_links_to']) {
    			$link = explode('|', $data['image_links_to']);
    			if ($link[1]) {
    				echo '<a href="'.$link[0].'" target="'.$link[1].'">';
    			}
    			else {
    				echo '<a href="'.$link[0].'">';
    			}
    		}

    And then in the URL field, use a pipe and put the target, such as..

    https://www.yourwebsite.com|_blank

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-Cycle] links open in new window’ is closed to new replies.