WordPress.org

Forums

WP Publication Archive
Set to Open in New Window (3 posts)

  1. StefExakt
    Member
    Posted 2 years ago #

    Is there a way to set the publication "view" button to open the document in a new window?

    Thanks,
    Stef

    https://wordpress.org/plugins/wp-publication-archive/

  2. StefExakt
    Member
    Posted 2 years ago #

    I was able to do this by directly editing the PHP files:

    Edit to PHP files of Plugin

    Add target="_blank" to following lines

    $output .= 'href="' . WP_Publication_Archive::get_open_link( $this->ID ) . '" target="_blank">';
    $output .= __( 'View', 'wp_pubarch_translate' ) . ' | ';

    echo 'ID, $alt['description'] ) . '">' . __( 'View', 'wp_pubarch_translate' ) . ' | ';

    Is there anyway you could add this as a setting so I do not have to remember to make this edit when updating the plugin?

  3. StefExakt
    Member
    Posted 2 years ago #

    edits to this file
    wp-publication-archive/lib/class.publication-markup.php

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Publication Archive
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.