WordPress.org

Forums

upPrev Previous Post Animated Notification
Change Article Title to h4? (3 posts)

  1. Curtis4
    Member
    Posted 4 years ago #

    Hi, sorry to ask for a css lesson, but would you please tell me how I would change the title font of the previous post to h4?

    Thank you very much for the great plugin.

    I tried putting "h4" in the CSS like this (but I know it's obviously wrong):

    #upprev_box .upprev_excerpt {
    /* === Container for Title, Thumbnail and Excerpt === */
    text-align:justify;
    }

    #upprev_box .upprev_excerpt h4 p {
    /* === Excerpt === */
    overflow:hidden;
    margin:0
    }

    #upprev_box .upprev_excerpt h4 p a {
    /* === Previous Post Link === */
    }

    #upprev_box .upprev_excerpt h4 p a:hover {
    /* === Previous Post Link: mouse over === */

    http://wordpress.org/extend/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/

  2. Grzegorz Krzyminski
    Member
    Plugin Contributor

    Posted 4 years ago #

    If you wanted to nest previous post link within h4 tag you need to change php code - file upprev.php, line #50, from:
    previous_post_link('%link','%title', true);
    to:
    previous_post_link('<h4>%link</h4>','%title', true);

  3. Curtis4
    Member
    Posted 4 years ago #

    Perfect. Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • upPrev Previous Post Animated Notification
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic