Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #853702

    Franz
    Participant

    Thanks, I’ll just write my own custom code to display the recent posts then.

    Do you reckon that there’s a new/recommended code for the new structure? And are there plans of integrating this feature in the CS Recent Posts; an on/off toggle perhaps?

    Beyond the mere simplicity in design or layout, I strongly believe in the power of excerpts and when done and structured right, they are the clincher for a reader clicking through the post from the home page, a Facebook share or a Google search result.

    Titles are the Worm. Excerpts are the Hook.

    #853757

    Franz
    Participant

    I’ve managed to pull this off by changing a few wrappers that mimic the new Recent Posts structure plus commenting on the nested anchors on these lines:

    ` $output .= ‘<a href=”‘ . get_permalink( get_the_ID() ) . ‘”>’
    . ‘<article id=”post-‘ . get_the_ID() . ‘” class=”‘ . implode( ‘ ‘, get_post_class() ) . ‘”>’
    . ‘<div class=”entry-wrap”>’
    . $image_output
    . ‘<div class=”x-recent-posts-content”>’
    . ‘<!–a href=”‘.get_permalink().'”–><h3 class=”h-recent-posts”>’ . get_the_title() . ‘</h3><!–/a–>’
    . ‘<span class=”x-recent-posts-date”>’ . get_the_date() . ‘</span>’
    . ‘</div>’
    . ‘<span class=”x-recent-posts-excerpt”>’ . $excerpt . ‘</span>’
    . ‘</div>’
    . ‘</article>’
    . ‘</a>’;`

    and commenting on these styles:

    /*.x-recent-posts a {
        overflow: visible;
        float: none;
        display: block;
        margin:0;
        border: none;
        padding: none;
        color: #999;
        background-color: transparent;
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
    }*/

    Multiple or nested anchors tags or results to ambiguity about which anchor should be affected by a click, thus a broken layout. It works now on my staging site http://staging.markuppros.com/cspv3/, although I’m still not convinced if this is the right way to it as far as HTML semantics is concerned.

    Once again, thanks for the assist!

    #853851

    Rue Nel
    Moderator

    Hey There,

    Glad that you have figured it out a way to correct the said issue.
    Thanks for letting us know!

    Best Regards.

    #878419

    cyrock
    Participant
    This reply has been marked as private.
    #879382

    Paul R
    Moderator

    Hi Cy,

    It looks like you are using an old version of the child theme.

    Please refer to the link below for your guide on how to fix it.

    https://theme.co/changelog/#theme-4-3-3

    Hope that helps.