WordPress.org

Ready to get started?Download WordPress

Forums

Ambrosite Next/Previous Post Link Plus
use thumbs only, with title as tooltip. (5 posts)

  1. sweetrobot
    Member
    Posted 1 year ago #

    woudl like to have thumbs only, with title as tooltip, such as "<< Title" or "Title >>".

    thanks!

    http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/

  2. ambrosite
    Member
    Plugin Author

    Posted 1 year ago #

    Try setting the 'format' parameter to an empty string, and use the 'tooltip' parameter to specify custom tooltip text.

  3. sweetrobot
    Member
    Posted 1 year ago #

    thanks.

    this:

    <div id="navi">
                <div id="prev-post">
                <?php previous_post_link_plus( array(
    'order_by' => 'post_date',
    'max_length' => 30,
    'thumb' => 'thumbnail',
    'format' => '',
    'tooltip' => '%title'
                        ) );?>
                </div>
    			<div id="next-post">
    <?php next_post_link_plus( array(
    'order_by' => 'post_date',
    'max_length' => 30,
    'thumb' => 'thumbnail',
    'format' => '',
    'tooltip' => '%title'
                        ) );?>
                </div>
                </div>

    still prints text titles, and the tooltip on the images are derived from the img title="text" parameter.

    though not ideal, i can hide the text links with display:none. i see the anchors wrapping the images do get the proper post title tag.

  4. ambrosite
    Member
    Plugin Author

    Posted 1 year ago #

    "the tooltip on the images are derived from the img title='text' parameter"

    There is nothing I can do about that. The thumbnail HTML is generated by the standard WP function get_the_post_thumbnail. The only way you might be able to get rid of that is by opening the thumbnail image in the media library and clearing out the Title and Alternate Text fields.

  5. sweetrobot
    Member
    Posted 1 year ago #

    i was going to attemt that, however, the media library requires title tags for images. and i don't want to modify any core. not a big deal. i can live without that- just making sure it's not something simpler.

    thanks for the prompt responses, and the super plugin.

    best

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic