Tagged: x
-
AuthorPosts
-
October 15, 2016 at 12:08 pm #1217441
lilyParticipantHello staff,
My category posts show a description that is not from the blog article:
http://viktoriyaandoksana.com/recipes/desserts/
http://viktoriyaandoksana.com/recipes/It shows the title, followed by “AUTHORS: VIKTORIYA AND OKSANA GRUZDYN Viktoriya and Oksana Gruzdyn are Nutritionists and PhD Students in Immunology. They teach online courses and workshops that focus on anti-aging nutrition, natural skin care, and digestion. In their spare time”
I want it to show title, followed by the text from the blog Excerpt as seen here:
http://viktoriyaandoksana.com/blog/How do I make it happen?
Thank you very much
October 15, 2016 at 12:46 pm #1217465
ThaiModeratorHi There,
To change the archive title, in the WordPress dashboard please edit a single category then scroll down to the Archive Title:
http://i.imgur.com/PiLfjaO.png
Hope it helps 🙂
October 16, 2016 at 11:25 am #1218285
lilyParticipantsorry, this is not what I’m asking.
I’m asking how to change the text below the title. The text should show the description from the post, but it is not. This shows the correct description from each blog post below the title —>
http://viktoriyaandoksana.com/blog/this “recipes” category show different description for all the same posts that appear on the blog:
http://viktoriyaandoksana.com/recipes/thank you
October 16, 2016 at 1:47 pm #1218396
RupokMemberHi there,
Thanks for writing back. That will be shown on all archive pages. If you want to change this, you need to edit this through Child Theme
The below files need to be amended :
/framework/views/integrity/_landmark-header.php
So let’s create the same directory on your Child Theme, copy the code from parent theme from same directory and amend the text.
Cheers!
October 17, 2016 at 11:04 pm #1220287
lilyParticipantcould you please give step by step instructions? thank you very much
October 18, 2016 at 1:22 am #1220377
RadModeratorHi there,
I’m trying to follow your requirement but I’m bit confused. Your blog page has no description, do you wish to add new? And how it’s related to post excerpts? On your blog page, all I could see are post titles. I don’t see this text either
AUTHORS: VIKTORIYA AND OKSANA GRUZDYN Viktoriya and Oksana Gruzdyn are Nutritionists and PhD Students in Immunology. They teach online courses and workshops that focus on anti-aging nutrition, natural skin care, and digestion. In their spare time
I just like to confirm it, would you mind providing a mockup design of what we should expect it will be.
Thanks!
October 21, 2016 at 11:15 am #1225598
lilyParticipanthi Rad!
thank you for your response!
Yes, i provided example in the first post, but I was not clear.
This is what I want it to look like:
http://viktoriyaandoksana.com/blogthis is what it looks like:
http://viktoriyaandoksana.com/budget-tips/
http://viktoriyaandoksana.com/health/Why do all these “health” “budget-tips” category posts..etc have the below text after the image:
AUTHORS: VIKTORIYA AND OKSANA GRUZDYN Viktoriya and Oksana Gruzdyn are Nutritionists and PhD Students in Immunology. They teach online courses and workshops that focus on anti-aging nutrition, natural skin care, and digestion. In their spare time
But the main blog does not have this text, but it has the text from the article.
http://viktoriyaandoksana.com/blogFor example, the first article “Are you drinking matcha lattes” has this text below the image here: http://viktoriyaandoksana.com/blog/
Matcha latte is prepared by mixing culinary grade matcha with a sweetener and any milk base (usually almond, soy, or coconut milk). Matcha latte can be prepared hot or iced. Our favorite iced matcha latte recipe is made by blending…
But, the first article “Are you drinking matcha lattes” has this text below the image here:
http://viktoriyaandoksana.com/health/AUTHORS: VIKTORIYA AND OKSANA GRUZDYN Viktoriya and Oksana Gruzdyn are Nutritionists and PhD Students in Immunology. They teach online courses and workshops that focus on anti-aging nutrition, natural skin care, and digestion. In their spare time
Could you please let me know how to make the text in all categories match the text that appears in the /blog for all posts.
Thank you!
October 21, 2016 at 9:43 pm #1226196
RadModeratorHi there,
Thanks for the clarification.
It’s from SABox plugin, which maybe also adds HTML on excerpt text then WordPress flatten it as plain text. Would you mind providing your admin and FTP login credentials in private reply? I like to see how it’s currently added, it should be added on single posts only, not on archive pages.
Thanks!
October 23, 2016 at 9:38 am #1227291
lilyParticipantThis reply has been marked as private.October 23, 2016 at 6:42 pm #1227623
RadModeratorHi there,
I checked the coding and it’s really intended to be displayed on archive pages. Instead, let’s create a custom one. Please add this code to your child theme’s functions.php
add_action('init', 'no_archive_sa_box', 9999); function no_archive_sa_box () { remove_filter ( 'the_content', 'wpsabox_author_box', 0 ); add_filter ( 'the_content', 'wpsabox_author_box_custom', 0 ); } function wpsabox_author_box_custom( $saboxmeta = null ) { if ( is_single() ) { global $post; global $options; $author_id = $post->post_author; if( isset( $options['sab_colored'] ) ) { $sabox_color = 'sabox-colored'; } else { $sabox_color = ''; } if( isset( $options['sab_web_position'] ) ) { $sab_web_align = 'sab-web-position'; } else { $sab_web_align = ''; } if( isset( $options['sab_web_target'] ) ) { $sab_web_target = '_blank'; } else { $sab_web_target = '_self'; } if( isset( $options['sab_web_rel'] ) ) { $sab_web_rel = 'rel="nofollow"'; } else { $sab_web_rel = ''; } if( get_the_author_meta( 'description' ) != '' || !isset( $options['sab_no_description'] ) ) { // hide the author box if no description is provided $saboxmeta .= '<div class="saboxplugin-wrap">'; // start saboxplugin-wrap div // author box gravatar $saboxmeta .= '<div class="saboxplugin-gravatar">'; $saboxmeta .= get_avatar( get_the_author_meta( 'user_email', $author_id ), '100' ); $saboxmeta .= '</div>'; // author box name $saboxmeta .= '<div class="saboxplugin-authorname">'; $saboxmeta .= '<a href="' . get_author_posts_url( $author_id ) . '">' . get_the_author_meta( 'display_name', $author_id ) . '</a>'; $saboxmeta .= '</div>'; // author box description $saboxmeta .= '<div class="saboxplugin-desc">'; $saboxmeta .= '<div class="vcard author"><span class="fn">'; $saboxmeta .= get_the_author_meta( 'description', $author_id ); $saboxmeta .= '</span></div>'; $saboxmeta .= '</div>'; if ( is_single() ) { if( get_the_author_meta( 'user_url' ) != '' and isset( $options['sab_web'] ) ) { // author website on single $saboxmeta .= '<div class="saboxplugin-web '. $sab_web_align .'">'; $saboxmeta .= '<a href="' . get_the_author_meta( 'user_url', $author_id ) . '" target="' . $sab_web_target . '" ' . $sab_web_rel . '>' . get_the_author_meta( 'user_url', $author_id ) . '</a>'; $saboxmeta .= '</div>'; } } if ( is_author() or is_archive() ) { if( get_the_author_meta( 'user_url' ) != '' ) { // force show author website on author.php or archive.php $saboxmeta .= '<div class="saboxplugin-web '. $sab_web_align .'">'; $saboxmeta .= '<a href="' . get_the_author_meta( 'user_url', $author_id ) . '" target="' . $sab_web_target . '" ' . $sab_web_rel . '>' . get_the_author_meta( 'user_url', $author_id ) . '</a>'; $saboxmeta .= '</div>'; } } // author box clearfix $saboxmeta .= '<div class="clearfix"></div>'; // author box social icons if( !isset( $options['sab_hide_socials'] ) ) { // hide social icons div option $saboxmeta .= '<div class="saboxplugin-socials ' . $sabox_color . '">'; foreach ( Sabox_Social_Icons::$sabox_social_icons_array as $sabox_social_id => $sabox_social_name ) { $sabox_author_fields = get_the_author_meta( $sabox_social_id ); if ( !empty( $sabox_author_fields ) ) { $saboxmeta .= Sabox_Social_Icons::get_sabox_social_icon( $sabox_author_fields, $sabox_social_id ); } } $saboxmeta .= '</div>'; } // end of social icons $saboxmeta .= '</div>'; // end of saboxplugin-wrap div } } return $saboxmeta; }Or if it’s not working due to setting’s scope, then you can edit this file directly /wp-content/plugins/simple-author-box/core/sabox_author_box.php
And replace this line
if ( is_single() or is_author() or is_archive() ) {with this
if ( is_single() ) {Hope this helps.
October 24, 2016 at 3:34 pm #1228862
lilyParticipantHi Rad!
Thank you!
the first option did not work, but the second one did! So I edited the file directly.
October 24, 2016 at 10:19 pm #1229256
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1217441 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
