-
AuthorPosts
-
March 26, 2016 at 5:44 pm #853702
FranzParticipantThanks, 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.
March 26, 2016 at 7:20 pm #853757
FranzParticipantI’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!
March 26, 2016 at 9:20 pm #853851
Rue NelModeratorHey There,
Glad that you have figured it out a way to correct the said issue.
Thanks for letting us know!Best Regards.
April 12, 2016 at 9:52 am #878419
cyrockParticipantThis reply has been marked as private.April 12, 2016 at 11:55 pm #879382
Paul RModeratorHi 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-283359 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
