Support » Plugin: Display Posts - Easy lists, grids, navigation, and more » Remove link from post header and some styling questions

  • Resolved PaulDoesWP

    (@pauldoeswordpress)


    I’d like to do a few simple things:
    Remove the link from the post’s header, so if a user clicks it, nothing happens.
    Apply an <h1> to the header.
    Add a line (eg. an <hr>) between the posts.

    Annoyingly, I’d already done all these things on my site, but I mistakenly deleted the display-posts plugin, then reinstalled it. This process lost my modifications. And I’m not sure how I did those modifications – I have an old copy of my functions.php and my style.css, and they are identical to the current versions of those files.

    Thanks in advance,
    Paul

    https://wordpress.org/plugins/display-posts-shortcode/

Viewing 1 replies (of 1 total)
  • Thread Starter PaulDoesWP

    (@pauldoeswordpress)

    I found this, by the author of this plugin: http://www.billerickson.net/code/remove-link-title-display-posts-shortcode/
    I added that code to my theme’s functions.php file, and it has successfully killed off the link from the post’s title. Nice.

    I also changed line 23 from:
    $output = '<' . $inner_wrapper . ' class="' . implode...
    to
    $output = '<hr><' . $inner_wrapper . ' class="' . implode...
    which gives me a simple <hr> separating each post.

    I also added .title to my theme’s syle.css to make the title match my h1 style:

    .h1, .title {
         font-family: 'leckerlitworegular', cursive;
        color: #511c39;
        font-size: 30px;
        font-weight: normal;
        line-height: 1.1;
        text-decoration: none;
    }

    I’m not sure how I accomplished this previously, but this did the job OK.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove link from post header and some styling questions’ is closed to new replies.