- This topic has 11 replies, 4 voices, and was last updated 4 years, 8 months ago by Tom.
-
AuthorPosts
-
July 9, 2019 at 9:48 am #953145fabiosilva
Hi,
I’ve created a Blog Page and I need to add some static information before (for example title, text, etc).
At the same time, I need to hide sidebar on blog page.So, I tried make this changes on page defined to “blog”, but nothing happens on the front end.
Am I doing something wrong?
Thank you.
July 9, 2019 at 9:55 am #953148LeoStaffCustomer SupportHi there,
I need to add some static information before (for example title, text, etc).
Not exactly sure what you are trying to create but you could consider using a header element:
https://docs.generatepress.com/article/page-hero-examples/
https://docs.generatepress.com/article/how-to-create-a-page-hero/
https://docs.generatepress.com/article/header-element-overview/Or a hook element:
https://docs.generatepress.com/article/hooks-element-overview/
https://docs.generatepress.com/article/hooks-visual-guide/As for blog page sidebar layout, it can be set in the customizer as WordPress ignores all metabox by default on index pages:
https://docs.generatepress.com/article/sidebar-layout/#blog-sidebar-layoutLet me know if this helps π
August 13, 2019 at 2:52 am #982691fabiosilvaHi,
Please, I need to customize the css tags “entry-xxx”, regardless on blog page and post page. Any css recommended to do it?Thank you.
FΓ‘bioAugust 13, 2019 at 7:50 am #983067LeoStaffCustomer SupportNot quite sure if I fully understand.
What are you trying to achieve?
August 13, 2019 at 7:53 am #983072fabiosilvaBasically, I try customize the elements of blog page and article page (for example, title, date, author, excerpt etc). With different customizations on blog and article page.
August 13, 2019 at 2:57 pm #983437LeoStaffCustomer SupportTitles on the posts listing page are
<h2>
and can be modified in the customizer.Titles on single posts are
<h1>
and can be modified in the customizer as well.The entry meta (author and date) can be modified using this CSS:
.entry-meta { color: #000; font-size: 15px; }
Then excerpt can be modified using this CSS:
.entry-summary { color: #000; font-size: 15px; }
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps π
August 14, 2019 at 12:30 am #983654fabiosilvaHi,
Thank you for your help.But, for example, I desire customize the .entry-meta of blog page, and .entry-meta of post page. So, with different customizations. And the CSS tags are the same.
I think I am being clear. :-s
Thank you
August 14, 2019 at 4:17 am #983774DavidStaffCustomer SupportHi there,
keep Leos code he provided this will apply to blog and all archvives.
Underneath that CSS create an exact copy of it, and change the selectors to.single-post .entry-meta
and.single-post .entry-summary
respectively. This will then set those styles for the single post.August 27, 2019 at 1:19 am #994331fabiosilvaHi,
Thank you for your help. I think I can solve my problem.
Btw, it’s possible put the date (entry-meta) below image?
https://ibb.co/m50dC5PThank you
August 27, 2019 at 8:32 am #994720TomLead DeveloperLead DeveloperThis might help:
add_action( 'after_setup_theme', function() { remove_action( 'generate_after_entry_title', 'generate_post_meta' ); add_action( 'generate_after_entry_header', 'generate_post_meta', 15 ); } );
Adding PHP: https://docs.generatepress.com/article/adding-php/
Let me know π
August 27, 2019 at 8:35 am #994721fabiosilvaSolved! π
Thank you.
August 27, 2019 at 4:30 pm #995020TomLead DeveloperLead DeveloperYou’re welcome π
-
AuthorPosts
- You must be logged in to reply to this topic.