Wordpress Tutorials
- Wordpress
- Directory and file structure.
- Wordpress configuration
- Htaccess Configuration
- WP-CONTENT user playground
- Increase file size loading in phpmyadmin on localhost.
- Fatal error: Allowed memory size of x bytes
- wordpress Dashboard
- How to set local host domain or Virtual host
- Header, index and footer page.
- How to create wordpress Themes
- Html to wordpress themes
- Child Themes
- Increase Upload Max Filesize
- wp_enqueue_style & script
- How to make plugin
- Create Plugin
- Insert data into table using plugin.
- Show data from database
- Hook & Filter
- Template Or Custom page template
- Custom Login template
- How to show post on diffrent page.
- Custom widgit
- How to use contact form 7 plugin.
- Wordpress Database
- How to use Duplicator plugin
- How to fix Fatal Error: Maximum Execution Time Exceeded in WordPress
- How to debuggin mode on in wordpress
- Auto update plugin and themes
- How to Transfer WordPress
- How to change a WordPress site URL
- Top 10 issues in wordpress
- wordpress website link
Wordpress setting
Wordpress Function
wordpress top 10 problems
Important Links
How to convert html themes to wordprsss themes ?
WordPress themes live in a folder inside the /wp-content/themes/ directory in your WordPress installation. Each theme’s folder includes a few essential components:
create html theme to wordpresss themes.
/* Theme Name: [A unique theme name here] Theme URI: [The theme website] Description: [A description] Author: [Your name] Author URI: [Your website].[Any other comments]. */
br/> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
All css file , js file and images directory path , we use
<?php bloginfo('template_directory') ?>/assets/ <br/> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/style.css" media="screen" /> <br/>
<script src="<?php echo get_template_directory_uri(); ?>/js/jquery-1.8.2.min.js"></script>
-
<?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>
File name : index.php
<?php get_header();?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page');
endwhile;
?>
<?php
query_posts('cat=11');
while(have_posts()):the_post();
the_content();
endwhile;
?>
<?php get_footer(); ?>
Note :-
NOTE :- create content-page.php page in your themes directory. and write some code.
<?php
/**
* The template used for displaying page content in content-page.php
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php the_content(); ?>
</div><!-- .entry-content -->
</article>
<!-- #post -->
<?php
/**
* The template used for displaying page content in content-page.php
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php the_content(); ?>
</div><!-- .entry-content -->
</article>
<!-- #post -->
create aboutus.php page in your themes directory. these page is creates for post category.
put some code on aboutus.php page.
File name : index.php
<?php /* Template Name: aboutusth1*/ ?>
<?php get_header(); ?>
<?php while(have_posts()):the_post();?>
<?php get_template_part('content','page');?>
<?php endwhile; // end of the loop ?>
<!--</main><!-- .site-main -->
<?php
query_posts('cat=3');
while(have_posts()):the_post();
the_content();
endwhile;
?>
<?php //get_sidebar( 'content-bottom' ); ?>
<!--</div><!-- .content-area -->
<?php //get_sidebar(); ?>
<?php get_footer(); ?>
Note :-
template name : aboutusth1 add the attribute in your created page template in wordpresspage on rightside widget. below parent.
similarly create services.php page in your themes directory. this page is creates for post category.
File name : index.php
<?php /* Template Name: servicesth1 */ ?>
<?php get_header(); ?>
<?php
query_posts('cat=4');
while(have_posts()):the_post();
the_content();
endwhile;
?>
<?php get_footer(); ?>
Output :-
template name : servicesth1 add the page attribute in your created page template in wordpresspage on rightside widget. below parent.
Note:
create snapshort.PNG image your html running page. for themes images. paste the snapshort.png image into your created template.
create snapshort.PNG image your html running page. for themes images. paste the snapshort.png image into your created template.