Title: Converting html to wordpress theme
Last modified: August 20, 2016

---

# Converting html to wordpress theme

 *  [Hussein39](https://wordpress.org/support/users/hussein39/)
 * (@hussein39)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/converting-html-to-wordpress-theme/)
 * Hi there
    I’m going to convert my html web page to wordpress but i dont know 
   why i faced with these error Fatal error: Call to undefined function get_rsidebar()
   in C:\wamp\www\wordpress\wp-content\themes\ImamTheme\Index.php on line 4 Call
   Stack # Time Memory Function Location 1 0.0016 139152 {main}( ) ..\index.php:
   0 2 0.0028 141272 require( ‘C:\wamp\www\wordpress\wp-blog-header.php’ ) ..\index.
   php:17 3 1.1017 10619768 require_once( ‘C:\wamp\www\wordpress\wp-includes\template-
   loader.php’ ) ..\wp-blog-header.php:16 4 1.1209 10627600 include( ‘C:\wamp\www\
   wordpress\wp-content\themes\ImamTheme\Index.php’ ) ..\template-loader.php:43 ———————————————————
   I upload my what everything i done here: [Here is my project uploaded into 4shared](http://www.4shared.com/rar/aWefG_ZE/wordpress.html)

Viewing 14 replies - 1 through 14 (of 14 total)

 *  [jmag](https://wordpress.org/support/users/jmag/)
 * (@jmag)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/converting-html-to-wordpress-theme/#post-2970096)
 * You have a typo in the function name. It is get_sidebar(). Drop the r in front
   of sidebar.
 * If you meant to call a named sidebar for the right side, i.e sidebar-right.php,
   you use get_sidebar(‘right’).
 *  Thread Starter [Hussein39](https://wordpress.org/support/users/hussein39/)
 * (@hussein39)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/converting-html-to-wordpress-theme/#post-2970109)
 * Thank you the error was solved but i have a problem with images and style the
   style is not performed and the images doesn’t find!!!
    how to address the style
   and images
 *  [jmag](https://wordpress.org/support/users/jmag/)
 * (@jmag)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/converting-html-to-wordpress-theme/#post-2970117)
 * Are you using relative or absolute paths to find the images used in the styles?
 * For the example I will give I assume the images you created are in an images 
   folder at the same level as the CSS folder inside your theme. To get the style
   to use your images inside the CSS use `url(../images/image1.jpg)`.
 * This is a relative link and will not break when installing your theme in other
   WordPress installations.
 *  Thread Starter [Hussein39](https://wordpress.org/support/users/hussein39/)
 * (@hussein39)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/converting-html-to-wordpress-theme/#post-2970126)
 * no i said the wordpress doesnt find my style.css
 *  [jmag](https://wordpress.org/support/users/jmag/)
 * (@jmag)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/converting-html-to-wordpress-theme/#post-2970130)
 * Did you create a CSS comment at the top of the CSS file for WordPress, that contains
   the theme name, version, description, author?
 * WordPress needs this at the top of the style.css file.
 *  [jmag](https://wordpress.org/support/users/jmag/)
 * (@jmag)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/converting-html-to-wordpress-theme/#post-2970132)
 * Here is a link to how to create the header comments in the CSS file.
    [http://codex.wordpress.org/Theme_Development#Theme_Stylesheet](http://codex.wordpress.org/Theme_Development#Theme_Stylesheet)
 *  Thread Starter [Hussein39](https://wordpress.org/support/users/hussein39/)
 * (@hussein39)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/converting-html-to-wordpress-theme/#post-2970138)
 * yes i did but i dont know what to write in front of the url
    /* Theme Name: ImamTheme
   Theme URI: Description: A brief description. Version: 1.0 Author: You Author 
   URI: Your website address. */
 *  [jmag](https://wordpress.org/support/users/jmag/)
 * (@jmag)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/converting-html-to-wordpress-theme/#post-2970143)
 * Technically the theme uri is where you can get information on the theme and updates.
   But I suppose you could just use the address of the company you are doing it 
   for, their home page or yours if you have one.
 *  Thread Starter [Hussein39](https://wordpress.org/support/users/hussein39/)
 * (@hussein39)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/converting-html-to-wordpress-theme/#post-2970279)
 * Thank you again im done it.
    another problem i think is about the css reset. 
   i use this code:
 *     ```
       html, body, div, span, applet, object, iframe,
       h1, h2, h3, h4, h5, h6, p, blockquote, pre,
       a, abbr, acronym, address, big, cite, code,
       del, dfn, em, font, img, ins, kbd, q, s, samp,
       small, strike, strong, sub, sup, tt, var,
       b, u, i, center,
       dl, dt, dd, ol, ul, li,
       fieldset, form, label, legend,
       table, caption, tbody, tfoot, thead, tr, th, td {
           margin: 0;
           padding: 0;
           border: 0;
           outline: 0;
           font-size: 100%;
           vertical-align: baseline;
           background: transparent;
       	font-weight:100;
       }
       body {
           line-height: 1;
       }
       ol, ul {
           list-style: none;
       }
       blockquote, q {
           quotes: none;
       }
   
       :focus {
           outline: 0;
       }
   
       ins {
           text-decoration: none;
       }
       del {
           text-decoration: line-through;
       }
   
       table {
           border-collapse: collapse;
           border-spacing: 0;
       }
       ```
   
 * but i dont know why in wordpress some of my element were changed. for
    example
   all of my website is into a maincontent div element and it is (in html) stick
   to the top of the page but into the wordpress it has about 25px space to the 
   top of the page.
 *  [jmag](https://wordpress.org/support/users/jmag/)
 * (@jmag)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/converting-html-to-wordpress-theme/#post-2970282)
 * The CSS you have displayed is correct to eliminate all spacing between the window
   and elements. Have you tried looking with Firebug or other browser inspection
   tool?
 * It may be something with the actual markup. You can use the markup validation
   tool to check if your HTML is correct. [http://validator.w3.org/](http://validator.w3.org/)
 * You can also check your CSS at [http://jigsaw.w3.org/css-validator/](http://jigsaw.w3.org/css-validator/).
 * You may have to generate the page then click “View Source” and copy and paste
   the HTML into the validator directly to get it to read you markup.
 *  Thread Starter [Hussein39](https://wordpress.org/support/users/hussein39/)
 * (@hussein39)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/converting-html-to-wordpress-theme/#post-2970289)
 * i’m checked but both css and html hadn’t any problem.
 *  Thread Starter [Hussein39](https://wordpress.org/support/users/hussein39/)
 * (@hussein39)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/converting-html-to-wordpress-theme/#post-2970314)
 * Nobody could help me
    would you please to download my theme and check it for 
   me [upload both html and theme here](http://www.4shared.com/rar/N81B3uv0/ImamTheme.html)
 *  Thread Starter [Hussein39](https://wordpress.org/support/users/hussein39/)
 * (@hussein39)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/converting-html-to-wordpress-theme/#post-2970369)
 * Does wordpress changing the html tags or tags css default value!!. would you 
   please to help me why this happen to me!!
 *  Thread Starter [Hussein39](https://wordpress.org/support/users/hussein39/)
 * (@hussein39)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/converting-html-to-wordpress-theme/#post-2970384)
 * would you please to show me a source to learn it.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Converting html to wordpress theme’ is closed to new replies.

 * 14 replies
 * 2 participants
 * Last reply from: [Hussein39](https://wordpress.org/support/users/hussein39/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/converting-html-to-wordpress-theme/#post-2970384)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
