HTML to WP
-
http://residencejasmine.com/blog_test/
this is my WP versionhttp://residencejasmine.com/
and this is the normal static HTML version.I try to translate my static web site to WP dynamic website. i translated header and footer successfully. but i have no idea to deal with body and side bar. side bar should be right side.
this is my first WP experience. pls help me.
-
in the main template:
.... .... <!--***************************:: BODY ::************************************--> <div id="content"> <div class="left"> THE_LOOP CODE </div><!--left--> <?php get_sidebar(); <div style="clear:both"></div> </div><!--content--> .... ....
and in sidebar.php:
<div class="right"> <?php if( !dynamic_sidebar() ) : ?> <div class="video"> <h1>Beauty of <.... ..... </div><!--video --> <?php endif; ?> </div><!---right-->
http://codex.wordpress.org/Function_Reference/dynamic_sidebar
and in functions.php, you need to add http://codex.wordpress.org/Function_Reference/register_sidebar
http://codex.wordpress.org/Widgetizing_Themes
http://codex.wordpress.org/Theme_DevelopmentThank you very much for fast replying 🙂
i will have a look01)
<?php get_header(); ?>
<!–*******:: BODY ::********–>
<div id=”content”>
<div class=”left”>
mt static content are here.
</div><!–left–><?php get_sidebar(); ?>
<div style=”clear:both”></div>
</div><!–content–>
<?php get_footer(); ?>Above coding is my PAGE.PHP. Now wt happened is all page have a same content @@, how can i fix it? how can i make it dynamic.
02)
Sidebar content should be change in each pages. according to my static site
- The topic ‘HTML to WP’ is closed to new replies.