- This topic has 41 replies, 3 voices, and was last updated 4 years, 12 months ago by
Elvin.
-
AuthorPosts
-
April 7, 2021 at 5:57 am #1724636
Guna
ok, in the snippet or css?
April 7, 2021 at 6:28 am #1724677David
StaffCustomer SupportIn the PHP Snippet – currently you have this code:
add_filter( 'option_generate_blog_settings', 'db_custom_category_arhive' ); function db_custom_category_arhive( $options ) { if ( is_category( 'travel-stories-about-local-cultures-and-people' ) ) { $options['post_image'] = true; } return $options; }Delete that. And add this:
add_filter( 'option_generate_blog_settings', 'db_custom_category_arhive' ); function db_custom_category_arhive( $options ) { if ( is_category( 'travel-stories-about-local-cultures-and-people' ) ) { $options['post_image'] = true; $options['post_image_position'] = 'post-image-above-header'; } return $options; }April 7, 2021 at 7:11 am #1724962Guna
OK, I did it, but still the same problem there.
April 7, 2021 at 9:12 pm #1725621Guna
So i removed the “chech” at “display featured images” in orrder to avoid double picture on the main page and to my susrprise the pictures under travel stories stayed in place as they should, above the title. I am very happy for that but I hope that it is not only because of cache.
Now that the picture problem is solved, I only have the widget problem left, because there is still the right sidebar widget under “TRavel STories” which I want to remove completly, but on the main page “Home” where I want to have the widget, my picture and the text under it is missing.
April 7, 2021 at 9:16 pm #1725627Elvin
StaffCustomer SupportCan you provide screen recordings or screenshots of what you see on your end?
It seems sorted on my end as shown here: https://share.getcloudapp.com/E0uYbmYv
Perhaps you’re seeing a browser cached version of your site. Can you try clearing it and check again?
April 7, 2021 at 9:26 pm #1725632Elvin
StaffCustomer SupportSo i removed the “chech” at “display featured images” in orrder to avoid double picture on the main page and to my susrprise the pictures under travel stories stayed in place as they should, above the title. I am very happy for that but I hope that it is not only because of cache.
Yeah that’s what I meant when I said:
Note: It displayed twice because you seem to have added the image as a content within the post as well.
on my reply here: https://generatepress.com/forums/topic/columns-not-working-under-category/page/2/#post-1722729 – I should’ve been more concise. My bad.
Now that the picture problem is solved, I only have the widget problem left, because there is still the right sidebar widget under “TRavel STories” which I want to remove completly, but on the main page “Home” where I want to have the widget, my picture and the text under it is missing.
You can remove that with a Layout Element.
Create one and have it setup like this: https://share.getcloudapp.com/llu5D8EB
April 7, 2021 at 9:50 pm #1725640Guna
Yes, I see exactly what you see there, so the pictures are solved, but talking about caches, how do I remove them, I have never done it in my life.
When you say Layout element regarding widgets, can you tell me more in detail where it is located and how exactly do I have to do it to show it fully (with my picture and text under it which is missing now) on the main page “Home” and remove it completely under TRavel STories?
April 7, 2021 at 10:44 pm #1725674Elvin
StaffCustomer SupportYes, I see exactly what you see there, so the pictures are solved, but talking about caches, how do I remove them, I have never done it in my life.
Oh that’s fine you can ignore that. That’s my forum signature. 🙂
It’s only applicable for sites that use one. Your site doesn’t seem to be using one so you can ignore that.
When you say Layout element regarding widgets, can you tell me more in detail where it is located and how exactly do I have to do it to show it fully (with my picture and text under it which is missing now) on the main page “Home” and remove it completely under TRavel STories?
Layout elements are created through Admin Dashboard > Appearance > elements.
Example: https://share.getcloudapp.com/NQuwDBo8
Follow the settings in the video link on my previous reply.
April 7, 2021 at 11:12 pm #1725698Guna
Yes, it worked, but now the last problem: my side widget where I removed it now was complete, whereas the one that stayed in the frontpage, is not complete and now that I removed the one under Travel stories, the widget on the front page still is missing my picture and my name. I went under the widget setting and can see that my name and description under it are there, so why does it not appear on the front page?
April 8, 2021 at 7:25 am #1726460David
StaffCustomer SupportYou need to delete this CSS:
body:not(.category-travel-stories-about-local-cultures-and-people) aside#text-4 { display: none; }April 8, 2021 at 10:31 am #1726661Guna
OK, now finally everything works, thank you so much for your patience!
Just to understand the better the 2 places, what is the difference between simple CSS and additional CSS in Generate Press?April 8, 2021 at 9:06 pm #1727067Elvin
StaffCustomer SupportSimple CSS is a plugin.
https://wordpress.org/plugins/simple-css/It allows you to conditionally apply your CSS on specific posts/pages.
It’s an old one. And to be frank, this isn’t necessary anymore as there are other ways of doing this like being more specific in CSS selectors or by using Hook elements to add CSS.
Additional CSS is the default way of adding CSS. It’s in the customizer settings. This CSS is global, meaning, whatever CSS added here is applied throughout the whole site.
Glad everything works for you now. 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.