- This topic has 16 replies, 4 voices, and was last updated 4 years, 9 months ago by Leo.
-
AuthorPosts
-
July 22, 2019 at 12:47 pm #964461Ravi Dixit
See this: https://prnt.sc/oilyqe
This website is also using GeneratePress theme with Elementor page builder.
I am not asking for the exact same results,
Can I create the shadow for each post container as this website did with Elementor?
And I can add Category as they did?
Thanks in Advance…
You guys helped me a lot. I don’t know much about coding but I can do everything because of GeneratePress support.
I want to clear confusion, this website is also using a child theme with GeneratePress but as I know we don’t need child theme. I am using GP since two years without Child theme never faced any issues. Do I need to use?
July 22, 2019 at 6:04 pm #964606TomLead DeveloperLead DeveloperHi there,
Just to confirm, are you trying to add the shadow to the posts on your Blog page?
As for a child theme, it depends on if you need to overwrite core template files or not. If you don’t, you don’t need a child theme.
July 22, 2019 at 7:00 pm #964631Ravi DixitYea I just want to add a shadow of each blog post containers(box) showed by Wp show post…
Thanks for the clarifying.
July 23, 2019 at 9:15 am #965213TomLead DeveloperLead DeveloperGive this a shot:
.wp-show-posts-inner { box-shadow: 0 0 10px rgba(0,0,0,0.1); } .wp-show-posts-entry-header { padding: 20px; }
Let me know π
July 23, 2019 at 10:13 am #965255Ravi DixitHey, Tom!
Thanks, It is working as I was expecting.
But it is not good at the homepage where I added some latest post from the blog using ShortCode. See this https://prnt.sc/oj0t4o
However, It is working good on the Blog page…
How can I solve the homepage issue?
July 23, 2019 at 3:59 pm #965448TomLead DeveloperLead DeveloperI believe that’s happening because your images in that list are set to align left.
Let me know π
July 23, 2019 at 6:10 pm #965517Ravi DixitYes, you are right!
It is working tom, thanks!
One thing more: How can I get shadow only downside of Primary navigation bar? as you can see on this site: shoutmeloud.com
Imp: I have tons of CSS added in Additional CSS tab, Is it good? Or do I need to use a sperate plugin for adding CSS? If yes then suggest the name.
July 23, 2019 at 6:59 pm #965538LeoStaffCustomer SupportShadow for primary navigation:
#site-navigation, #sticky-navigation { box-shadow: 0 5px 8px -1px rgba(0,0,0,.4); position: relative; }
If you have more than 400 lines of CSS, I would recommend using a child theme:
https://docs.generatepress.com/article/using-child-theme/July 24, 2019 at 9:03 am #966131Ravi DixitHello, This code is adding Shadow on Navigation menu, But I want to show it for all header including logo…And want to show only down side (drop shadow).
July 24, 2019 at 3:58 pm #966387LeoStaffCustomer SupportTry this instead:
.site-header { box-shadow: 0 5px 8px -1px rgba(0,0,0,.4); z-index: 999; }
July 24, 2019 at 8:18 pm #966518Ravi DixitHi, Leo!
It is working as I wanted, I tried to do it by myself before asking you but failed. Can you explain to me what z-index is used for?
And how can I implement the same for floating navigation?
However, thanks for the help. You helped me a lot.
July 24, 2019 at 10:04 pm #966569JagdishJuly 25, 2019 at 8:38 am #967075LeoStaffCustomer SupportHi Ravi,
If you Google “z-index CSS” then there should be lots of explanations as it’s not specific to the theme.
@Jagdish, any chance you can open a new topic and link me to the site in question?
Thanks π
July 25, 2019 at 6:13 pm #967463Ravi DixitHey, Leo!
how can I implement the same Shadow for floating navigation?
July 25, 2019 at 7:01 pm #967485LeoStaffCustomer SupportThis should work:
#sticky-navigation { box-shadow: 0 5px 8px -1px rgba(0,0,0,.4); }
-
AuthorPosts
- You must be logged in to reply to this topic.