ACF-Repeater for world-press plugin For Repeat custom filed Repeater
Advance custom fields for world-press plugin For advance filed creater
http://103.16.143.17/pawan/advanced-custom-fields.zip
option tree for world-press plugin For common filed create.
For wordpress convert html to worldpress using php or array code
================================================================================================================================================
Themes ---> worldpress_themes_name ---> ( Style.css )
------------------------------->
/*
theme name: Worldpress Theme dynemic
version: 5.2
author: pawan gupta
author URI: https://superuserg.blogspot.in/
template: twentyfifteen
tags: meta tags dalne hai website ke accroding
description: this website is besed on electronic equipment
*/
Themes ---> worldpress_themes_name ---> (screenshot.png)
------------------------------>
themes screen short put on uper sequence of path
Themes ---> worldpress_themes_name ---> (index.php)
------------------------------->
<?php get_header(); ?>
<?php
if(have_posts()) :
while(have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>
<?php get_footer(); ?>
Themes ---> worldpress_themes_name ---> (header.php)
------------------------------->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><?php bloginfo(); ?></title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<?php wp_head(); ?>
</head>
<body>
<header>
Themes ---> worldpress_themes_name ---> (footer.php)
------------------------------->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<?php wp_footer(); ?>
<script>
$('.single-item').slick({
dots: true,
arrows: false,
autoplay: true,
autoplaySpeed: 2000,
});
$('.autoplay').slick({
slidesToShow: 6,
slidesToScroll: 4,
autoplay: true,
autoplaySpeed: 2000,
});
</script>
</body>
</html>
(most important page is called functions.php)
Themes ---> worldpress_themes_name ---> (functions.php)
------------------------------->
<?php
function callscripts(){
wp_enqueue_style('slider', get_stylesheet_directory_uri() . '/css/revolution-slider.css', array(), '1.0', 'all');
wp_enqueue_style('slick', get_stylesheet_directory_uri() . '/css/slick.css', array(), '1.0', 'all');
wp_enqueue_style('theme', get_stylesheet_directory_uri() . '/css/slick-theme.css', array(), '1.0', 'all');
wp_enqueue_style('maincss', get_stylesheet_directory_uri() . '/css/style.css', array(), '1.0', 'all');
wp_enqueue_style('responsive', get_stylesheet_directory_uri() . '/css/responsive.css', array(), '1.0', 'all');
wp_enqueue_script('revolution', get_stylesheet_directory_uri() . '/js/revolution.min.js', array(), '1.0', 'all');
wp_enqueue_script('rev', get_stylesheet_directory_uri() . '/js/rev.js', array(), '1.0', 'all');
wp_enqueue_script('slick', get_stylesheet_directory_uri() . '/js/slick.min.js', array(), '1.0', 'all');
wp_enqueue_script('main', get_stylesheet_directory_uri() . '/js/main.js', array(), '1.0', 'all');
}
add_action('wp_enqueue_scripts', 'callscripts');
function setup_nav(){
register_nav_menus( array(
'mainmenu' => __( 'main Menu', 'twentyfifteen' ),
'ftmenu' => __( 'footer Menu', 'twentyfifteen' ),
'ftresources' => __( 'resources' ),
'ftimportant' => __('important'),
'leftnav' => __('left nav'),
'promenu' => __('product nav'),
'solumenu' => __('solution nav'),
) );
}
add_action('after_setup_theme', 'setup_nav');
?>
------------------------------->
page start in
Themes ---> worldpress_themes_name ---> Templates ----------> (home.php)
------------------------------->
((((((For past in top of page))))))
<?php
/*
template name: home template
*/
?>
<?php get_header();?>
(((((((((for past in bottom in page)))))))))))
<?php get_footer();?>
((((((((((((((((for repeater )))))))))))))))))))
<?php
if(have_rows('banner')) :
while(have_rows('banner')) : the_row(); ?>
<?php endwhile; endif; ?>
((((((((((((((((only sub filed create )))))))))))))))))))
For h2, p, div, span tegs
<?php the_sub_field('banner_h2'); ?>
For Images
<img src="<?php the_sub_field('ser_img'); ?>">
If background image call (use background images to for-ground and use the bottom code)
<div style="background: url(<?php the_sub_field('testi_back'); ?>); background-attachment: fixed; background-size: 100%;" class="testimonial sec text-center">
((((((((((((((((((((((((For option tree )))))))))))))))))))))))))))
<h3><?php echo ot_get_option('about_footer'); ?></h3>
((((((((((((((((((((((((For Menu use for navgation, footer, left section )))))))))))))))))))))))))))
<div class="col-lg-2 col-md-4 col-sm-6- col-xs-12">
<div class="link">
<h3>Quick Links</h3>
<?php
wp_nav_menu(array(
'theme_location' => 'ftmenu',
'container' => 'ul',
));
?>
</div>
|----------------------- ---------------------------|
|----------------------- ---------------------------|
No comments:
Post a Comment