WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. StefExakt
    Member
    Posted 3 months 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 3 months 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 3 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.