Forum Support

Shape 5
March 28, 2024, 01:45:47 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: Changing a little code on template.css  (Read 418 times)
ccvid
Jr. Member
**
Offline Offline

Posts: 100



« on: May 20, 2014, 10:08:31 AM »

I erased some of the empty space in between sections and modules on the Oasis template.  The changes look good, I just want to see if there is any reason I should not do what I did...

in the template.css I changed line 1481 from
Code:
.module_round_box_outer, #s5_pos_custom_2 .moduletable {
margin-right:35px;
margin-left:35px;
margin-bottom:60px;
font-size:1.1em;
}

to
Code:
#s5_pos_custom_2 .moduletable {
margin-right:35px;
margin-left:35px;
margin-bottom:60px;
font-size:1.1em;
}


.module_round_box_outer {
margin-right:35px;
margin-left:35px;
margin-bottom:30px;
font-size:1.1em;
}

I had changed the margin-bottom to 30px on both of those module locations, but it totally screwed up the custom1 module.  So I separated them out...  Does this look good?
Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #1 on: May 21, 2014, 10:22:06 PM »

Hello,

I wouldn't reccomend modifiying core files like that as:

a) It can effect other areas of the site
b) When you update the Template the changes will be erased

What I would do is find the area where you want to modify the values (using Firebug) and override them with !important calls in the custom.css file. This file is not replaced during a Template update.

#s5_pos_custom_2 .moduletable {
margin-right: 10px !important;}

Using !important overrides any existing Template calls and sets your added CSS as the priority.

-Mike
Logged

Mike Nicoll
------------
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
ccvid
Jr. Member
**
Offline Offline

Posts: 100



« Reply #2 on: August 14, 2014, 11:36:49 AM »

I know this is getting away from your service, but I'm helping a plugin to show up properly on this template and the plugin author told me to add the following code to my stylesheet.  So I put it in the template.css with the "!important" label on the back as you suggested.  Do you think I'm doing this right?

labels_googleMaps {
     color: black !important;
     background-color: white !important;
     font-family: "Lucida Grande", "Arial", sans-serif !important;
     font-size: 10px !important;
     font-weight: bold !important;
     text-align: center !important;
     width: 60px !important;
     border: 2px solid black !important;
     white-space: nowrap !important;
   }
Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #3 on: August 14, 2014, 09:09:33 PM »

Hello,

That should be fine. I would suggest putting that code in the custom.css file though, not the template.css.

Regards,
Logged

Mike Nicoll
------------
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.