Archived topic
showing comments link in meta
42 replies · Started by dassana on September 10, 2018
That doesn't look like the function I provided here: https://generatepress.com/forums/topic/showing-comments-link-in-meta/page/2/#post-677993
i had updated it then. but now i have removed it.
Looks like it's working now - the published date doesn't have any schema attached to it :)
yes its working now.
You shouldn't have any issues at all :)
thanks tom 😊
You're welcome :)
hi tom
1. after changing to child theme, i am not able to get the words 'updated' next to the modified date in all posts. it just shows the plain date without any text of updated next to it. the css code is still there, but its not taking the word 'updated. i have disabled cache plugin and checked the issue, but still the problem persists. currently i am using the following css
.posted-on .updated {
display: inline-block;
content: "Updated: ";
}
you can check this link - https://www.vegrecipesofindia.com/paneer-butter-masala/
2. also i am using the font awesome for social media following in the navigation menu. but now in the child theme its not appearing in the menu and right side bar on safari browser. on chrome browser, the icons are showing as empty square boxes.
This should be the CSS:
.posted-on .updated {
display: inline-block;
}
.posted-on .updated:before {
content: "Updated ";
}
How are you loading Font Awesome? One of these methods?: https://docs.generatepress.com/article/font-awesome/
hi tom
the above code mentioned by you does not work. it completely removes the date from the page.
for adding font awesome icons, i am not using any method. i am using the old version of font icon that came with the theme initially. first i could see the icons but not now. so should i add the code in the code snippets plugin?
add_action( 'wp_enqueue_scripts', 'tu_load_font_awesome' );
/**
* Enqueue Font Awesome.
*/
function tu_load_font_awesome() {
wp_enqueue_style( 'font-awesome', '//use.fontawesome.com/releases/v5.3.1/css/all.css', array(), '5.3.1' );
}
You need the other CSS as well - I've updated the CSS here: https://generatepress.com/forums/topic/showing-comments-link-in-meta/page/3/#post-693822
You can use that function, but it may be better to use a plugin like this if you're not comfortable updating the code when Font Awesome releases new versions: https://wordpress.org/plugins/wp-font-awesome/
thanks tom. added the codes from the link and its working. even added the function for font awesome and the icons can be seen. thanks a ton for all your help.
Awesome, glad I could help! :)