• deathmonkey

    (@deathmonkey)


    Hi, yesterday I made a custom theme for WordPress after linking it to my site by following these instructions:

    https://www.webhostingsearch.com/arti…e-tutorial.php

    This is the blog: https://www.thewebsiteofdaniel.net/blog

    It’s all set up fine and I can change the font and the background colour etc. by editing this CSS file:

    /*
    Theme Name: DeathMonkey
    Theme URI: The Website of Daniel
    Description: My custom WordPress theme
    Version: 1.0
    Author: Daniel Batty
    Author URI: https://www.thewebsiteofdaniel.net
    
    */
    
    body{
    	margin: 0;
    	font-family: Calibri; Arial
    	font-size: 12px;
    	font-color: #ffffff
    	text-align: center;
    	vertical-align: top;
    	background: url("images/bg.png")
    	color: #ffffff;
    }
    
    a:link, a:visited{
    	text-decoration: underline;
    	color: #336699;
    }
    
    a:hover{
    	text-decoration: none;
    }
    
    #wrapper{
    	margin: 0 auto 0 auto;
    	width: 750px;
    	text-align: left;
    }
    
    #header{
    	float: left;
    	width: 750px;
    }
    
    #box{
    	float: left;
    	width: 500px;
    }
    
    .sidebar{
    	float: left;
    	width: 240px;
    	background: #eeeeee;
    	margin: 0 0 0 10px;
    	display: inline;
    }
    
    #footer{
    	clear: both;
    	float: left;
    	width: 750px;
    }
    
    .comments-template{
    	margin: 10px 0 0;
    	border-top: 1px solid #ccc;
    	padding: 10px 0 0;
    }
    
    .comments-template ol{
    	margin: 0;
    	padding: 0 0 15px;
    	list-style: none;
    }
    
    .comments-template ol li{
    	margin: 10px 0 0;
    	line-height: 18px;
    	padding: 0 0 10px;
    	border-bottom: 1px solid #ccc;
    }
    
    .comments-template h2, .comments-template h3{
    	font-family: Georgia, Sans-serif;
    	font-size: 16px;
    }
    
    .commentmetadata{
    	font-size: 12px;
    }
    
    .comments-template p.nocomments{
    	padding: 0;
    }
    
    .comments-template textarea{
    	font-family: Arial, Helvetica, Georgia, Sans-serif;
    	font-size: 12px;
    }

    I want to set a picture (1280×1024) as my background (the same one as my homepage) but it just shows up with a white screen…Likewise, I tried adding in “font-color: #NUMBER” to set the font color and yet again, nothing changes… any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Clayton James

    (@claytonjames)

    A) you are missing or have misplaced some semicolons

    B) I can get the image to work with an absolute url.

    background: url(“https://thewebsiteofdaniel.net//blog/wp-content/themes/TWOD/images/bg.png”) no-repeat top center;

    Note the extra slash in all of your urls.

    //thewebsiteofdaniel.net//blog/

    Thread Starter deathmonkey

    (@deathmonkey)

    Thanks so much! I was getting really frustrated but this did it. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress Custom Theme editing problem’ is closed to new replies.