Forum Support

Shape 5
March 28, 2024, 05:19:32 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to reduce the height of the background main menu and links centered?  (Read 472 times)
chriddo
Jr. Member
**
Offline Offline

Posts: 216



« on: January 19, 2016, 03:05:03 PM »

I see that originally the height of the main menu background is 190px.
I tried to reduce it to 100px (as below) but the main menu items did not change because of this. 

Code:
#s5_headerbackground {
width:100%;
height: 100px;
background-attachment: scroll;
    background-color: #ffffff;
background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;}

Any suggestion on how to solve this the best way?
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #1 on: January 20, 2016, 02:15:15 PM »

Hello

It all depends on if you have custom_6 and or breadcrumbs published. If neither are published then you'd edit where you did in the CSS file but if any of these are published the height had to be adjusted.  We added the scenarios for this in the template's index.php file and so you'd have to change the heights there:

Code:
<?php if ($s5_pos_breadcrumb == "published" && $s5_pos_custom_6 == "published") { ?>#s5_headerbackground{height:180px;}<?php ?>
<?php if ($s5_pos_breadcrumb == "published" && $s5_pos_custom_6 != "published") { ?>#s5_headerbackground{height:215px;}<?php ?>
<?php if ($s5_pos_breadcrumb != "published" && $s5_pos_custom_6 == "published") { ?>#s5_headerbackground{height:215px;}<?php ?>
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.