- This topic has 10 replies, 3 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
December 29, 2022 at 8:51 am #2477099
JOSE
Hi,
Little by little I’m replacing everything done with Showposts, currently rest the Header.
How can I change it to the Header of the Info theme?
After changing the header, is it important to remove references in the css or can I leave them?I’m happy with the dispatch theme, just looking to optimize it. Could it be a better idea to replace it with another theme like the info theme?
Thanks
December 29, 2022 at 11:07 am #2477230Ying
StaffCustomer SupportHi Jose,
Your site looks good, we don’t recommend switching site templates on a live site, it might generate some conflicts.
Here’s the content of the Info homepage, follow the steps below:
https://pastebin.com/0uLgYcaw1. create a new page.
2. click the 3 dots icon on the right top corner to enable the code editor.
3. copy/paste the code there.
4. click the 3 dots icon again to switch back to the visual editor.Then you can select the first container which is the hero section, and paste it to your current homepage to replace the WP showposts.
December 30, 2022 at 11:15 am #2478272JOSE
Thanks Ying,
Nice!
Only I have a problem with the first image, I don’t know why but it’s not in a full size (square).
ThanksDecember 30, 2022 at 12:14 pm #2478317Ying
StaffCustomer SupportCan you try adding this CSS?
.full-height, .full-height > .gb-inside-container { height: 100%; }Let me know 🙂
February 7, 2023 at 3:22 am #2524218JOSE
Finally I have made different changes and I am close to being able to remove the showposts plugin. However, I still have a few things to change:
– The widget on the right with 6 pots, sidebar, is shown correctly in a post (in a column) but nevertheless it is shown in 3 columns if I click on the menu in a category.– the header, how can I make the letters look good on both light and dark backgrounds without affecting the opacity of the photo? How can I implement the zoom effect that I had with showspots when I hovered over it with the mouse?
Thank you so much
February 7, 2023 at 8:06 am #2524697David
StaffCustomer SupportHi there,
1. Add this PHP Snippet to your site, so the Query Loop does not attract the GP Blog Columns:
add_filter( 'post_class', function( $classes ) { $infinite_scroll_item_index = array_search( 'infinite-scroll-item', $classes ); if ( in_array( 'gb-query-loop-item', $classes ) && $infinite_scroll_item_index !== false ) { unset( $classes[ $infinite_scroll_item_index ] ); } return $classes; } );Which header? Is on the home page or the single post ?
February 7, 2023 at 8:34 am #2524719JOSE
Thx David,
Header in home page.
ThanksFebruary 7, 2023 at 9:02 am #2524748JOSE
Ummm…
I writ this code in the functions.php file on the child theme and it’s the same…
I’m doing something wrongFebruary 7, 2023 at 9:17 am #2524775David
StaffCustomer SupportHome page:
Edit the Query Loop block(s), inside that is a block titled : Post Template.
Select that and:1. In settings set the Inner Z-index to 10
2. Give it a Gradient background. to create a darker shade behind the text.
2.1 Set the Gradient selector to pseudo:
https://docs.generateblocks.com/article/gradient-overview/3. Set the background image selector to: Element.
The sidebar column issue:
Edit that Query Loop and select its Post Template block.
In the Layout set the Flex Child setting as this:Grow: 1
Shrink: 1
Basis: 100%;February 7, 2023 at 1:13 pm #2525065JOSE
All done, all work!!!
Thanks David!!!
February 8, 2023 at 4:20 am #2525688David
StaffCustomer SupportGlad to hear that
-
AuthorPosts
- You must be logged in to reply to this topic.