Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1350358
    kateanita
    Participant

    Hello, how can I add a “view post” link after the links to individual blog posts in the sidebar on the main blog archive page? I’m referring to the links on the right side of the screen here: http://homefed.stapkodesign.com/noteworthy/

    I’m using Ethos and have the most recent version of everything.

    Thank you!

    Katie

    #1350389
    Lely
    Moderator

    Hello Katie,

    Please add this CSS on Appearance > Customize > Custom > Edit Global Javascript:

    jQuery ( function( $ ) {
    $('<span>VIEW POST </span>').appendTo('.x-sidebar #recent-posts-3.widget ul li a');				  
    });

    Also add this CSS on Appearance > Customize > Custom > Edit Global CSS:

    .x-sidebar #recent-posts-3.widget ul li a span{
        display: block;
        color: red;
        text-align: center;
        text-decoration: underline;
    }

    Feel free to customize the CSS for the VIEW POST design.

    Hope this helps.

    #1352932
    kateanita
    Participant

    Worked perfectly – thanks so much!

    #1353105
    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again.

    Thanks. 🙂

    #1354102
    kateanita
    Participant

    Hi – one more quick question – how can I add the “view post” to the individual blog page sidebars as well? Like here: http://homefed.stapkodesign.com/2017/01/18/market-common-celebrates-new-years-eve-bands-mirror-ball-drop-fireworks-9000-revelers/

    Thanks so much!

    Katie

    #1354561
    Lely
    Moderator

    Hello Katie,

    Please update JS code to this:

    jQuery ( function( $ ) {
    $('<span>VIEW POST </span>').appendTo('.x-sidebar .widget.widget_recent_entries ul li a');				  
    });

    Then update CSS code to this:

    .x-sidebar .widget.widget_recent_entries  ul li a span{
        display: block;
        color: red;
        text-align: center;
        text-decoration: underline;
    }

    Hope this helps.

    #1355515
    kateanita
    Participant

    You are the best, thank you! Worked perfectly.

    #1355528
    Prasant Rai
    Moderator

    You’re welcome! We are just glad we were able to help you out.

  • <script> jQuery(function($){ $("#no-reply-1350358 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>