Styling Promo_box

Hi there,

I'd like to change the width of the photo and desc wrappers of the Promo_box  in a specific portfolio. There is no CSS custom in the portfolio - where do I add my CSS then without changing the rest of the website?


and this is how I'd like it to look: (less space for the photo and more for the description)

.promo_box_wrapper .photo_wrapper {
    width: 20%; }

.promo_box_wrapper .desc_wrapper {
    width: 72%; }

Thank you!
Effie

Comments

  • Hi,
    To make the CSS work only on that page, then you have to add the body.postid(ID)

    In your case it will look like this:
    body.postid-5646 .promo_box_wrapper .photo_wrapper {
    width: 20%;
    }

    But I suggest not to customize it by CSS, if it's possible, decrease the wrap/section grid to make it smaller.
    Thanks
  • edited February 2019
    Thanks Pablo. I will have to think how to redesign it...maybe the promo box is not the best choice. If I shrink it its not looking great.


  • I mean, by changing the grid of the wraps.
    Thanks
  • Thanks Pablo - ...it is just that I need more space for text and less for photos and by reducing the promo box size  it still keeps the same ratio if you know what I mean. I've used the promo box with a normal page and changed the CSS in the page itself - check HERE
    However I need to move it into portfolio and create six different brands..and there is no room in the portfolio to add a local CSS...so I do it probably just with Columns.

    Also - do you have a 'Gallery' that I can use as a quick menu on the top of the page like I did HERE  ?
    I was writing this one myself as I couldn't find anything that can do it for me in your Theme..your Gallery is great but only let you zoom, and no links. is there a way to customize it? any idea what should I use except write my own code? (it takes me too long and I am not so good at it!)
    Thanks, Effie
  • 1) Yes, you can recreate it with columns easly - almost all of the items are made that way,
    So, you will be able to make the space for text larger.
     
    2) Unfortunately, it's not possible with Gallery item.
    I think, you have to do it with your own code, sadly.

    If you have some other questions, feel free to ask.
    Thanks
  • Thanks for your help and advice :-)
    Regards, Effie
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.