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.
You are not logged in.
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
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
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
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
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.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
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
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
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.
Offline
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
UltraEdit is a good one also. http://www.ultraedit.com/
Offline