- This topic has 19 replies, 4 voices, and was last updated 4 years, 6 months ago by
Leo.
-
AuthorPosts
-
December 20, 2017 at 6:33 am #453750
Edin
Hello,
On the home-page where all the posts are listed:
I’d like to move the meta-information (in this case category and comments-count) directly below the article headline, and align them horizontally.
Is there a way to do that without affecting the location of the meta for the single articles?
Thank you!
GeneratePress 2.0.1December 20, 2017 at 9:24 am #453936Tom
Lead DeveloperLead DeveloperHi there,
You could try this:
add_action( 'after_setup_theme', 'tu_move_footer_entry_meta' ); function tu_move_footer_entry_meta() { if ( ! is_singular() ) { remove_action( 'generate_after_entry_content', 'generate_footer_meta' ); add_action( 'generate_after_entry_header', 'generate_footer_meta' ); } }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentDecember 20, 2017 at 9:32 am #453943Edin
Thanks, Tom, but now they disappeared completely (I’ve put the code into the functions.php btw.).
Here what I have ticked in the Customizer:
December 20, 2017 at 9:42 am #453953Tom
Lead DeveloperLead DeveloperHmm, can you link me to the page?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentDecember 20, 2017 at 11:45 am #454031Edin
Tom, it’s on a test-site behind a password. If you like I can send you the link and password per email?
December 20, 2017 at 2:36 pm #454150Leo
StaffCustomer SupportYou can use Account Issue here: https://generatepress.com/contact/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 21, 2017 at 9:34 am #454680Edin
Thank you, just sent the email.
December 21, 2017 at 9:33 pm #454964Tom
Lead DeveloperLead DeveloperWeird that after title wasn’t working – I adjusted it to after entry header and it’s working now 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentDecember 22, 2017 at 2:04 pm #455507LoGP
This is what I was also looking for. And it works.
But I’m actually trying to get it before the title?
I tried before_entry_header and before_entry_title but both don’t work.
Only after_entry_header works.
December 22, 2017 at 4:09 pm #455561Leo
StaffCustomer SupportTry the
before_content
hook: http://demo.generatepress.com/hook-locations/Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 23, 2017 at 2:03 am #455668LoGP
Hm, no this places it above my thumbnail. It really needs to be above my title because I have my thumbnail left aligned and the title and excerpt right aligned on my blog page.
But looking at the hook locations url there seems to be no hook to use before the page title.
December 23, 2017 at 8:06 am #455829Leo
StaffCustomer SupportCan you show me what you currently have again?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 24, 2017 at 1:12 am #456106Edin
Tom, sorry for the late feedback, but thank you for making the change manually. It worked beautifully. I really appreciate your help.
Is there any way to put both metas horizontally?
Thanks again,
EdinDecember 24, 2017 at 9:07 am #456282Leo
StaffCustomer SupportTry this CSS:
.cat-links, .comments-link { display: inline-block; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 25, 2017 at 2:10 am #456509LoGP
Hey Leo,
Check this is what I have:
So the category needs to come on top of the title.
Cheers
L -
AuthorPosts
- You must be logged in to reply to this topic.