Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter Chris Muzzy

    (@chris-muzzy)

    Sorry, here’s the link

    Hi Chris, I like the fact that you’re doing a responsive site. What changes have you made to the theme so far? I had a look at the live preview for that theme and although your menu displays some strange behavior on some of the media queries the menu position for the final mobile view is where it should be according to the original theme.

    I do notice that you added a slideshow instead of their full page slider and if you do not want the mobile menu on top of it you’ll have to customize it. The strange behavior I mentioned is caused by your site name which is too long for the top bar and then pushes the large menu down before it reaches mobile view. On one of the media queries at around 991px width, I notice a smaller mobile menu still displaying in the top bar and I think the easiest way to fix your problems will be to include that view of the menu in some of the other media queries where the menu is not displaying as it should. For the final mobile view you can then leave the longer mobile menu at the bottom of the top bar and just move the slideshow down below it with some css.

    Quite a long post, but hope you can make out what I mean.

    Let me know what you decide, or if I can clear somethings up for you.

    Regards

    Ernest Close

    Thread Starter Chris Muzzy

    (@chris-muzzy)

    Thanks Ernest.
    I understand your points.
    putting the rev slider into the header section isn’t a problem but the person that will be using the site prefers it as it is, which I believe shouldn’t affect the menu items not staying in the navigation bar.
    I would have thought that the menu and title would have shrunk down as it is a responsive theme.
    Would it help if I removed the search box from the nav bar? if so how do I do it?
    Would it help if I made the nav bar wider and placed a line break in to the site name?

    I am quite new at this web construction so please keep things simple for me haha.
    Chris

    Hi Chris, yes the title text does not shrink when the view port gets smaller and takes up the entire space on mobile view. Not necessarily a bad thing, because the text could get so small that it’s hard to read.
    Removing the search icon will not give you enough space and besides it looks good there. I think you should leave the main header height (not width) as it is too.
    The slider is relatively positioned and is behind your main header at the moment, cutting some of the slider off at the top and this is because of the full page sliders positioning. Moving the slider down with 72px will bring it below the main header. Then in your mobile menu query you can move it down even more to make room for the mobile menu displaying below the main header. As for some of the other media queries, I’m afraid you will have to change the view of the menu to display the smaller drop-down mobile menu.
    The media queries to look at is around 979px to 768px. This is where the menu is not displaying correctly and I think it will be easiest to fix by giving it the same menu as in the mobile view with the slideshow just below it.

    Let me know how it works out for you.

    Regards

    Ernest Close

    Thread Starter Chris Muzzy

    (@chris-muzzy)

    Ernest

    Wow. I like the sound of your suggestions but implementing them is another story haha.
    So in simple terms… Do I need to alter the positioning of the slider from ‘relative’ to something else? or, do I need to adjust the size of the image slider?
    Changing the mobile query sounds like it could be beyond my knowledge abilities.
    I really appreciate your help over this issue

    regards
    Chris

    Hi Chris, first of all you should create a child theme or install a custom css plugin. That way you will not lose your changes when your theme or plugins update. Add this to your custom css:

    .fullwidthbanner-container {
    width: 100%;
    position: relative;
    top: 72px;
    padding: 0;
    overflow: hidden;
    }

    That will move the slideshow down just below the main header which is 72px heigh.
    Now you will have to move the main content area down slightly as well by adding this for the home page only:

    body.home #main {
    max-width: 1160px;
    margin: 0 auto;
    margin-top: 82px;
    position: relative;
    z-index: 10;
    clear: both;
    }

    here I changed the margin-top from 55px to 82px and it will give you a small gap between the slideshow and carousel.

    Now you will have to add the media queries for the specific view ports for the breakpoints you want the menu to change in and they have to be exactly the same as the breakpoints in the original css file only the menu styles should change otherwise you will get some strange behavior.

    Unfortunately this is a bit complex for posting in this form, but you want to change the ‘#rightheader’ and ‘.searcharea a’ styles for the break point between 979px and 768px to match the styles of the max 767px break point. After getting the menu to work as required you will want to add the two top blocks of code to these two media queries again only this time changing the value for top 72px and margin-top 82px to something bigger to push them further down for these views.
    You will have to play with these values a bit to get it just right for all the views.

    [ Contact offer redacted ]

    Regards

    Ernest Close

    Thread Starter Chris Muzzy

    (@chris-muzzy)

    Ernest

    It seems I have much to learn!
    I would love to be able to get the right results by adding these css codes by myself.
    I have heard of creating child themes and will do some research on this subject before making any alterations.
    I have copied and pasted the existing css code from the theme editor to notepad in case things go wrong.
    I’m not sure exactly where to paste the css codes that you have very kindly typed up for me.
    The complex side of what you mention looks a bit mind boggling, but again I have to try and fix this issue completely.
    Can you send me a link to your website and I’ll check it out?
    Thanks again for your time and consideration with this issue.
    I hope to sort this problem asap as obviously the site is live and is receiving some criticism, which is fair enough.

    Regards
    Chris

    Sorry, I thought my website was in my profile.
    Here is a link to get you started codex.www.ads-software.com/Child_Themes

    Basically all you need in the child theme is a css file and you can place only the styles that you want to override in there.
    Once you’ve got your child theme setup, copy the styles that I mention from your original stylesheet to your new child theme stylesheet and apply the changes that I mentioned. That way you do not change the original and if it does not work simply deleting what you’ve added to the child theme will bring your site back to what it was. Look through your stylesheet for the media quiries with the break points I described and copy those over as well also applying only the changes as I described. Here is a sample of a media query so you know what to look for:

    @media all and (max-width: 979px) and (min-width: 768px) {
      #style for this break point;
    }

    Enjoy playing with the css, it really is fun.
    oh and my website is at mystudio.co.za

    Let me know how things work out for you.

    Regards

    Ernest Close

    Thread Starter Chris Muzzy

    (@chris-muzzy)

    Some very nice work in there Ernest.

    I will play with the css code and child theme setup when I get home from the office.
    Thanks again for your advice and time.

    Chris

    Always a pleasure.

    Thread Starter Chris Muzzy

    (@chris-muzzy)

    Ernest
    Can you advise again please.
    The theme isn’t showing in the cPanel under themes. When I upload the theme to Cpanel it does not show on the left side under themes?

    Hi Chris, what did you name the theme? and did you add the required comments and url?

    Also, did you remember to activate your child theme. You should never have to make a file or directory 777.

    Thread Starter Chris Muzzy

    (@chris-muzzy)

    I now Have the child theme but in the theme section I’m now told that I need to upload the parent theme??? WordPress then tells me that there is an error with the upload and it will not install it.

    This is on a different site that I’m practising with not the website posted earlier. I want to try and get it correct before playing with a live website

    Have you made an exact copy of the main site. It is always good to try things on a test site.
    In the theme directory do you have ‘yourtheme’ and ‘yourtheme-child’ directories?
    Have you activated ‘yourtheme’ first and then activated ‘yourtheme-child’?
    Do you have the required comments and the url to the original style.css file in your new child theme style.css file?
    ‘yourtheme’ obviously being the name of your theme.
    It is very important that your comments are correct and that the url points to the correct path of the original style.css file.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Nav bar and menu items’ is closed to new replies.