Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2016-10-19 21:06:35

markh
Member
From: Center of The US
Registered: 2012-09-24
Posts: 380
Website

Need a lttle clarification on custom css in Wordpress theme

What is the sequence of events I should follow after editing my custom css file. File resides in /backlight/custom/css/myfile.css.  I edit it locally then ftp it to my site server. Do I then need to re-edit the BL page template that uses it? and then re-export the WP theme? Or is there some other step I'm missing. Reason I'm asking is because my custom css additions/changes are not showing up on the page in question.
Mark

Offline

#2 2016-10-19 21:17:19

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Need a lttle clarification on custom css in Wordpress theme

If the page template being used for the theme is using custom CSS, then simply updating the CSS file should produce results.
Have you tried clearing browser cache?
Have you checked the inspector to see if the CSS is trying to be applied?
Can you post a link to your blog along with the CSS code you expect should be applied?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2016-10-19 21:38:24

markh
Member
From: Center of The US
Registered: 2012-09-24
Posts: 380
Website

Re: Need a lttle clarification on custom css in Wordpress theme

Hi Rod,
Whoops. Forgot the link. Blog is at http://blog.photophart.com
Have been trying to add a single pixel border to the top and bottom of the nav with variations on this:
.page__body > nav {
    border-bottom:1px solid black;
    border-top:1px solid black;
}
OR this:
ul#primary-menu {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}
Or this:
nav ul {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}
Or this:
nav.spinal__column {
    border-bottom:1px solid black;
    border-top:1px solid black;
}
nav {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

Now that I look at this a little more closely it seems the custom css is actually getting seen because my page color gradient is there. Soooooo...I apparently don't have the correct selector in any of the above code. Maybe there isn't a selector for what I'm trying to do, yes/no?
Thanks Mark
Hold the phone...just switched browsers. Now I've got borders all over the place. So, yes Rod, seems to be a browser cache clearing thing. Or, in other words, OPERATOR ERROR!
Duh...

Offline

#4 2016-10-19 22:13:30

markh
Member
From: Center of The US
Registered: 2012-09-24
Posts: 380
Website

Re: Need a lttle clarification on custom css in Wordpress theme

Well, doggonnit, Got my nav borders top and bottom but now my column color gradient is gone.

Offline

#5 2016-10-19 22:35:54

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Need a lttle clarification on custom css in Wordpress theme

you've got some broken css. You're missing the closing curly brace after this bit:

/*To place a border above and below navigation, try adding this to your custom css file:*/
nav.spinal__column {
	border-bottom:1px solid black;
	border-top:1px solid black;

this makes any css after that inoperative.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#6 2016-10-19 22:39:05

markh
Member
From: Center of The US
Registered: 2012-09-24
Posts: 380
Website

Re: Need a lttle clarification on custom css in Wordpress theme

Criminy, my synapses ain't synapsing this morning.

Offline

#7 2016-10-19 22:47:03

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Need a lttle clarification on custom css in Wordpress theme

If you look at your custom css in a browser's inspector (I'm using the one in Firefox), you'll see selectors in blue and the properties in red. If you see any selectors in red, somethings wrong. Look at the rule with the last blue selector, that's usually where the problem will be.

selector-not-blue.jpg


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#8 2016-10-19 22:55:36

markh
Member
From: Center of The US
Registered: 2012-09-24
Posts: 380
Website

Re: Need a lttle clarification on custom css in Wordpress theme

Thanks a million Rod. Always nice to start the day learning something new. Didn't know about the colors in inspector. Now all I need is a desktop code editor that will check my code for the troublesome typos as I go along. Something like a spell-checker only a code-checker.
In your debt, Mark

Offline

#9 2016-10-19 23:28:29

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Need a lttle clarification on custom css in Wordpress theme

markh wrote:

Now all I need is a desktop code editor that will check my code for the troublesome typos as I go along. Something like a spell-checker only a code-checker.
In your debt, Mark

Look for editors that are done for programmers. They should provide syntax highlighting for CSS. Then there are language sensitive editors that understand the syntax and help you write your code.

I am working on a Mac. For text editing I used TextMate. But I have CSSedit as well that provides many features to help me write proper CSS.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#10 2016-10-20 01:06:34

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Need a lttle clarification on custom css in Wordpress theme

I work almost entirely in Panic's Coda, but it's somewhat costly. Sublime Text is also pretty great, and can be used for free. I think there are versions available for both Mac and Windows.


Matt

The Turning Gate, http://theturninggate.net

Offline

#11 2016-10-20 01:09:01

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Need a lttle clarification on custom css in Wordpress theme

Notepad++ is also good. It's Windows and free.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#12 2016-10-20 01:19:03

markh
Member
From: Center of The US
Registered: 2012-09-24
Posts: 380
Website

Re: Need a lttle clarification on custom css in Wordpress theme

Thanks guys. Checking out your suggestions since I'm sure you've got better things to do than check my code for typos.
Mark

Offline

#13 2016-10-20 02:34:56

gwlco
Member
From: Pensacola, Fl.
Registered: 2012-10-24
Posts: 337
Website

Re: Need a lttle clarification on custom css in Wordpress theme

UltraEdit is a good one also.  http://www.ultraedit.com/

Offline

Board footer

Powered by FluxBB