- This topic has 26 replies, 4 voices, and was last updated 4 years, 1 month ago by
David.
-
AuthorPosts
-
August 31, 2021 at 3:06 am #1913641
Anonymous
Hello Ying,
Also, How can I add underline on links like on secondsite bellow?
Thanks,
Sara
August 31, 2021 at 5:12 am #1913770David
StaffCustomer SupportHi there,
the secondsite is using the System font. That is all Customizer > Typography settings will be set to
inherit
August 31, 2021 at 12:01 pm #1914498Anonymous
Hello,
Just one last thing how I can make links underline like on site bellow?
Thanks,
Sara
August 31, 2021 at 12:12 pm #1914519Leo
StaffCustomer SupportTry this CSS:
.entry-content p a, .nav-links a { border-bottom: 2px solid rgba(93, 184, 115, .2); }
September 3, 2021 at 2:24 am #1917455Anonymous
Hello Leo,
Yes that worked 🙂 But, I just got one last issue on point 2 where we added “Updated on ” text before postdate, the thing is I would like to show post update date not publishing date, how I can manage to do this?
Thanks,
Sara
September 3, 2021 at 4:54 am #1917576David
StaffCustomer SupportYou can add the snippet provided here:
https://docs.generatepress.com/article/generate_post_date_show_updated_only/
It will output only the Updated Date if there is one, otherwise it will display the Published date.
September 3, 2021 at 8:16 am #1917925Anonymous
Hello David,
I will try this, but, do I need to use Code Snippets plugin (https://wordpress.org/plugins/code-snippets/)? or how I execute this snippet? can be done on elements?
Also, Leo on CSS code for underlining links is also underlining buttons as you can see on link bellow, how I can disable it from buttons?
Thanks for your time,
Sara
September 3, 2021 at 8:48 am #1917960David
StaffCustomer SupportYou need Code Snippets unless you are working with a Child Theme, and then it can be added to the Child Theme functions.php
I edited Leos CSS so it only styles links inside a paragraph.
September 4, 2021 at 7:55 am #1918853Anonymous
Hello David,
Underline is gone on buttons with new CSS code and with code snippets it seems to be showing update date as you claim, just one last question is priority 10 code snippets good?
Thanks for your time,
Sara
September 4, 2021 at 8:57 am #1918890David
StaffCustomer SupportShort answer: Yes, 10 is good 🙂
More info:
Priority in code snippets is the same as the Priority set in anadd_action
hook ( which is an option you see in GP Hook Elements ) or anadd_filter
hook code snippet.The priority simply sets the order the code should be fired. For example a priority of
1
gets fired before2, 3, 4, 5 etc.
. Think of them as those old take a Number Ticket Queuing systems.If you have a number of snippets and they are all left as default of
10
then those codes get executed in whichever order they were loaded.Personally i don’t see any reason for Priorities in Code Snippets, as most codes you add to code snippets already define where to be executed and in which order.
September 4, 2021 at 11:05 am #1918984Anonymous
Awesome!! Thank you for the info David 🙂
September 5, 2021 at 3:41 am #1919282David
StaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.