-
AuthorPosts
-
November 18, 2016 at 5:27 am #713826
Hey guys, dealing with a very challenging client.
How difficult would it be to have the blog post tags at the base of each post, and not the top… https://js-interactive.com/tags.pngHere is what their current site posts look like. Tags at the bottom: https://sunshineandreign.com/2016/08/savannah-tylers-arizona-elopement-arizona-wedding-photographers/
Thanks
November 21, 2016 at 2:16 pm #714810Hi Justin!
I don’t think it would be that difficult, we can use custom js scripts to change it’s position. Just post to us a link to the page mentioned, as long as it’s using one of our themes we would be glad to help you with it :)
Cheers!
NikkoNovember 21, 2016 at 5:12 pm #714897Nikko, thanks! The login remains the same. See below …
November 22, 2016 at 2:47 pm #715328Hey Justin,
I have enabled Blog Post Tags in Enfold Child > Blog Layout. The tags now appear beneath the date. In you child theme, please create includes folder inside it create a new file called loop-index.php then add this code: http://pastebin.com/3CmppN4s
Try to check the post after, let us know if it works :)
Regards,
NikkoNovember 22, 2016 at 6:06 pm #715479Nikko, this is fantastic….thank you!! Looks great!
My only comment…looking at the style, the line-height is set to 1.0em for the tags, yet there appears to be a break of some sort that is leaving the line-spacing for the tags pretty large. How can I tighten that up? See the link, and the tags at the base of the post. Thank you.November 22, 2016 at 6:24 pm #715488Hi Justing
Try to add this in Quick CSS:
#top.single-post span.blog-tags.minor-meta { line-height: 1 !important; }
Let us know if it works ;)
Regards,
NikkoNovember 22, 2016 at 8:02 pm #715535no change yet.
November 22, 2016 at 9:26 pm #715587Hey!
Justin, play around with the number and you will find out which one works perfevt got you, if you increase it it might work better.
Thanks a lot
Regards,
BasilisNovember 22, 2016 at 9:28 pm #715590Disregard please… mt browser wasn’t caching correctly. Thank you :)
November 22, 2016 at 9:49 pm #715608Hi!
Can you post a screenshot on your end? I checked the site and the code I gave reflects properly on my end.
Best regards,
NikkoNovember 23, 2016 at 11:16 pm #716204Nikko, the client wants the categories at the bottom of the individial posts. Not just tags … any thoughts?
November 25, 2016 at 7:57 am #716690Hey!
Please add this in the functions.php file.
add_action('ava_after_content', function($id, $content) { if(is_single()){ $categories = get_the_category(); $separator = ' '; $output = ''; if ( ! empty( $categories ) ) { foreach( $categories as $category ) { $output .= '<a href="' . esc_url( get_category_link( $category->term_id ) ) . '" alt="' . esc_attr( sprintf( __( 'View all posts in %s', 'textdomain' ), $category->name ) ) . '">' . esc_html( $category->name ) . '</a>' . $separator; } echo trim( $output, $separator ); } } });
Best regards,
IsmaelAugust 22, 2019 at 7:52 pm #1130067I too had a client who wanted the category tags repeated after post and I have used the code you supplied above.
It is generated a ” warning missing argument 2 for {closure} () ”
On the first line. But the code is working. Just want to get rid of the warning.Thanks.
August 23, 2019 at 6:14 am #1130201Hi bodnikwebservices,
Warnings should not affect the actual functionality of the code like you pointed out. Did you check if you have debug mode turned off on your installation? https://codex.wordpress.org/WP_DEBUG
Best regards,
RikardAugust 26, 2019 at 5:03 pm #1131031the debug option in my wordpress cfg is set to off.
Here is an image of the warning:
The warning show sup on the single post and on the main blog page after each snipet entry.
Any ideas what could be causing it?
Thanks.
August 26, 2019 at 5:05 pm #1131032Sorry that image didnt post well. Left it in the prvt section as a link.
August 27, 2019 at 3:45 am #1131160Hi,
Edit the filter’s closing tag and define the number of variables or arguments that the hook should accept.
echo trim( $output, $separator ); } } });
Replace it with:
echo trim( $output, $separator ); } } }, 10, 2);
Or just set the WP_DISPLAY_DEBUG constant to false in the wp-config.php file to get rid of the warning.
Best regards,
IsmaelAugust 27, 2019 at 8:53 pm #1131453Many thanks!
All fixed. Great support.
August 27, 2019 at 10:12 pm #1131469Hi,
I’m glad this was resolved for you. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Blog tags on bottom of post’ is closed to new replies.