Ready to get started?Download WordPress


[resolved] Custom CSS | Template Path Syntax (3 posts)

  1. dmbox
    Posted 1 year ago #

    I need some syntax help with the Thesis Custom.CSS function.

    The temp site is here: Trinity CC

    I successfully added a background image to the pages' content_box ID with this CSS:

    .custom #content_box {
    	background: url('http://trinitylutherancc.org/site/wp-content/uploads/2012/09/content_bkgrnd_liteNS.png') 0 0 no-repeat;
    	background-attachment: scroll;
    	padding: 0 0 0 20px;

    When I specify the No Sidebars template (that comes with the Thesis Theme) for the Home Page I lose the background image.

    Can you please advise what my problem is with this bit of CSS?

    .custom.page-template-no_sidebars-php #content_box {
    	background: url('http://trinitylutherancc.org/site/wp-content/uploads/2012/10/content_bkgrnd2.png') 0 0 no-repeat;
    	background-attachment: scroll;
    	padding: 0 0 0 20px;

    This theme has a PHP file called no_sidebars.php which I assume is the template I need to reference with my CSS.

    Thanks in advance.
    Douglas Beck

  2. In the layout.css, the class

    .no_sidebars {
    background: none !important;

    is overriding your background.

    you could try to add the background image to

    .custom .page
    instead, that might work better

  3. dmbox
    Posted 1 year ago #

    Thank you Christine for the prompt reply.

    I commented this line of code out, as I anticipate the home page being the only one to use this template.

    Warmest regards,

Topic Closed

This topic has been closed to new replies.

About this Topic