Tagged: 

Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #1475939

    Hi there,

    Please can i have some help with this.

    I have followed the instructions but it does not seem to work correctly.

    This is how i could like my website to display the header like this

    Kind regards,
    Chris

    #1475969

    Hey purplecloud,

    Please try the following in Quick CSS under Enfold->General Styling:

    #text-3 {
      position: absolute;
      left: 0;
    }
    
    #media_image-3 {
      position: absolute;
      right: 0;
    }

    Best regards,
    Rikard

    #1475974

    Hi Rikard,

    Thanks for this, this nearly worked but still something is a little off.
    If you check out https://charminsterdental-co-uk.purplecloudstaging.com/

    You will see the logo in the middle is very small.

    Also how does this then work on Mobile view?

    #1476009

    Hi,

    Thanks for the update. Do you have a screenshot highlighting what you would like to achieve?

    Best regards,
    Rikard

    #1476012

    its a rebuild of a current site so actually we just want to recreate the header they have on

    they have an image left, logo centre and html text right. then the menu below.

    I thought like this example would work:

    #1476025

    Hi,

    Please set a higher pixel value for the header height under Enfold->Header. If you want a menu like on the site you linked to, you might want to try the Fullwidth Sub Menu element instead of using the regular menu.

    Best regards,
    Rikard

    #1476047

    No that doesn’t help just makes it look worse by stretching the height of the main menu.

    Can we just get the widgets aligning correctly?

    so it is Widget left, Logo center, widget right

    I have attached a screenshot showing the issue.

    https://charminsterdental-co-uk.purplecloudstaging.com/wp-content/uploads/2025/01/compare-screenshot.jpg

    Many Thanks
    Chris

    #1476178

    Hi,

    Sorry for the late reply. The code in the demo doesn’t seem to work anymore unfortunately, we’ll have a close look at that. I’ve added CSS on your site for now, please have a look.

    Best regards,
    Rikard

    #1476239

    Thanks for this, it is showing as off centre on my screen, here is a screenshot
    https://charminsterdental-co-uk.purplecloudstaging.com/wp-content/uploads/2025/02/site-screenshot.jpg

    Also on mobile the menu has gone, how do we just display the logo and menu on mobile view only?

    Thanks

    #1476304

    Hi,

    I’ve edited the CSS a bit, please have a look again. Let’s do the mobile layout once you are happy with the desktop layout.

    Best regards,
    Rikard

    #1476655

    Hi there,

    Yes i think the desktop layout is now fine thank you, if the top right text could right align justify like the current https://www.charminsterdental.co.uk/ that would be great but if not i think it is okay.

    With the mobile if it could have the same elements within the header as per the current https://www.charminsterdental.co.uk/ site

    so phone number and email and logo and burger menu

    I have a screenshot of both sites side by side to show the mobile layout differences issue
    https://charminsterdental-co-uk.purplecloudstaging.com/wp-content/uploads/2025/02/site.jpg
    sites

    thanks a lot,
    Chris

    #1476657

    replace these to rulesets:

    #header_main {
    	display: flex; 
    	flex-wrap: wrap;
    	align-items: center;
    	justify-content: space-around;
    }
    
    #header_main .widget {
    	flex: 0 0 auto;
    }
    
    #text-3 {
      text-align: right
    }

    BUT: you will come to conflict if you go to responsive bahaviour, because the logo container is part of the flex items.
    i would try to do that not by flex layout but by grid layout.

    #1476659

    remove the flex settings given to you by docu.
    maybe test these settings first on dev tools insertion:

    try:

    /*** Naming of the Grid Areas ***/
    #header_main #media_image-3 { grid-area: area1; }
    #header_main #media_image-4 { grid-area: area2; }
    #header_main #text-3 { grid-area: area3; text-align: right }
    #header_main div.av-logo-container { grid-area: area4; display: grid; justify-content: center }
    
    #header_main {
      margin: 0;
      display: grid;
      gap: 20px 40px;
      grid-auto-flow: row;
      grid-template-columns: 1fr 1fr 1fr;   
      grid-template-areas:
        "area1 area2 area3"
        "area4 area4 area4";
      justify-content: stretch;
      align-items: center;
    }
    
    #header_main > div {
      justify-self: center;
      align-self: center;
      padding: 0 30px;
    }
    
    @media only screen and (max-width: 1119px) {
      #header_main {
        grid-template-columns: 1fr 1fr; 
        grid-template-rows: 0.5fr 1fr auto ;
        grid-template-areas:
          "area2 area2"
          "area1 area3"
          "area4 area4";
      }
      #header_main #media_image-4 { transform:scale(1.2) }
    }
    
    @media only screen and (max-width: 989px) {
      #header_main {
        grid-template-columns: 1fr 1fr 1fr 1fr; 
        grid-template-rows: 0.3fr 1fr;
        grid-template-areas:
          "area2 area2 area2 area4"
          "area1 area1 area3 area3";
      }
      
      #header_main #media_image-3 { transform:scale(0.8) }
      #header_main #text-3 { transform:scale(0.8); padding: 0;}
      #header_main div.av-logo-container {display: grid; justify-content: center; background-color: transparent }
    
      #header_main div.av-logo-container {
        display:  block ; 
      }
    
      #header_main .av-main-nav-wrap {
        float: right;
        padding-right: 50px;
      }
      
      #top #av-burger-menu-ul {
        padding-top: 120px !important;
      }
    }
    
    @media only screen and (max-width: 767px) {
      .responsive #top #wrap_all .main_menu {
        position: relative;
      }  
      #header_main #media_image-4 { transform:scale(1); justify-self: start; padding-left: 50px }
      .responsive #top .logo {display: none;}
    }
    • This reply was modified 1 week, 6 days ago by Guenni007.
    • This reply was modified 1 week, 6 days ago by Guenni007.
    #1476660

    when on your example page the widgets contents change ( f.e. below 768px) we have to have that alternativ content.
    so put in that widget areas that alternative content – and on wider screens we set them to display none – and on smaller screens vice versa.
    by css.

    there had to be some fine-tuning on very small screens (mobile phones) . but we could do that later …

    _____________________________

    by the way – just for info – you see here on showing the grids in dev tools f.e. below 990px:

    first you see the gaps ( 20px 40px)
    then you see there are 4 columns and two rows ( all columns have the same width but different height – 1fr = one fraction)
    first row: the 3 first grid-cells are filled with that area2 the 4th grid-cell is filled with area4 (“area2 area2 area2 area4”)
    last row: first 2 cells filled with area1 – last 2 cells are filled with area3 (“area1 area1 area3 area3”)

    __________________

    info – you do not need to fill every cell you could have f.e. here on first row: “area2 area2 . area4” the dot indicates an empty cell

    see here a nice post: https://css-tricks.com/snippets/css/complete-guide-grid/
    You do not need to always declare the grid areas – but if you want to change postion for different screensize – then this helps you to better address the different selectors.

    #1476745
    This reply has been marked as private.
    #1476754

    #1476755

    Hi Guenni007,

    Are you saying to remove all if the css added from the documentation on

    With your proposed ccs?

    Will that cancel out everything done so far by Rikard?

    I appreciate the help with this, it’s very frustrating it is so difficult to have a layout like this that just works.

    #1476812

    Hi,

    Sorry for the late reply. I’ve added some CSS for the mobile layout now, please have another look.

    Best regards,
    Rikard

    #1477379

    Thanks Rikard for this, this looks great.

    Where did you add the CSS for this? If i want to adjust some sizing of the logo etc, where was the css entered to tweak if i need too?

    Thanks,
    Chris

    #1477407

    Hi,

    Thanks for the update. I added the CSS to the stylesheet in your child theme.

    Best regards,
    Rikard

Viewing 20 posts - 1 through 20 (of 20 total)
  • You must be logged in to reply to this topic.