1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Global Shop page problems

Discussion in 'Free Divi Community Forum' started by Scott Douglas, Mar 2, 2020.

  1. Scott Douglas

    Scott Douglas Member

    Hi,

    I'm having trouble with the Shop Global Theme that I've custom created in the Divi Theme Builder.

    http://www2.pcdc.net/~vscr/testing/shop/

    For some reason the header is different from the other pages, and yet it's setup as using the same global header. Any ideas why the change? The sizing is different, and the cart/search icons are a different colour on the shop page vs everywhere else.

    Also, I've tried to target in CSS the slider text sections and button but can't seem to do anything to affect them. I'm looking to change the properties (align, uppercase, font-size, and button styling) of the main header in the slide and the button.

    This is what I currently tried using, but it isn't working:

    .responsive-fw-slider-shop.et_pb_section .et_pb_slider.shop-fw-slider .et_pb_slide .et_pb_container .et_pb_slider_container_inner .et_pb_slide_description {
    display: inline-block;
    float: right;
    text-align: left;
    font-size: 5rem;
    }
    .responsive-fw-slider-shop.et_pb_section .et_pb_slider.shop-fw-slider .et_pb_slide .et_pb_container .et_pb_slider_container_inner .et_pb_slide_description h2 {
    font-size: 3rem;
    text-transform: uppercase;
    text-align: left;
    }

    .responsive-fw-slider-shop.et_pb_section .et_pb_slider.shop-fw-slider .et_pb_slide .et_pb_container .et_pb_slider_container_inner .et_pb_slide_description .et_pb_slide_content {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    }

    .responsive-fw-slider-shop.et_pb_section .et_pb_slider.shop-fw-slider .et_pb_slide .et_pb_container .et_pb_slider_container_inner .et_pb_slide_description .et_pb_button.et_pb_more_button {
    font-size: 1rem;
    text-transform: uppercase;
    border-width: 0;
    background-color: #ed8023;
    padding-right: 12rem;
    float: left;
    }
     
    1. PRO MEMBER PERKS Divi.Help Pro Layout Packs - Agency Divi layout pack featuring modern overlay archive blog layout with hover effects:View Demo
  2. Scott Douglas

    Scott Douglas Member

    update - was able to fix the targeting problem, but am still unsure why the global header on the shop page has different sizing/padding, and cart/search icon colours here vs the rest of the site.
     
  3. Divi.Help

    Divi.Help Administrator
    Staff Member

    From what I see, you're using CSS to change the width, margin, etc for the custom header. And it's being overridden by the Divi CSS in cpt page.

    You should be using the section / row / module settings to set width, margin, etc.
     
    1. PRO MEMBER PERKS Beautifully crafted custom colored 'Industrial' Divi layout for all Pro members:View Demo
  4. Scott Douglas

    Scott Douglas Member

    It seems to work on every other page, do you know if there is a reason the CSS isn't taking hold on the shop template/page?
     
  5. Divi.Help

    Divi.Help Administrator
    Staff Member

    Cause in the shop page, Divi loaded another type of CSS file, which has more priority CSS Class than yours.

    Alternatively, you can add !important tag for your CSS.
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Replace the default archive "Older Entries" with beautiful pagination:Learn More
  6. Scott Douglas

    Scott Douglas Member

    Thanks! That definitely helps the header. I've noticed a few things have become harder to target going the route of using the theme builder for the shop page.

    Because I'm using Essential Grid for the product grid, do you think it would be more ideal to create a new page, and set that to the 'shop page' in Woocommerce instead of using the theme builder?
     
  7. Divi.Help

    Divi.Help Administrator
    Staff Member

    Is there any difference between Theme Builder & creating a new page? I believe both also granted you to edit your page in Divi Builder.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade slide in bar design for your Divi site without using any plugins:View Demo