Commit 6ad8b1d6 by Muhammad Usman

home page dynamic

parent 7dd2c183
/*
VQode Course
*/
/*----- Body Style Start ----- */
html
{
scroll-behavior: smooth;
}
body
{
font-family: Poppins, "Poppins Black", "Poppins ExtraBold", "Poppins ExtraLight", "Poppins Light", "Poppins Medium", "Poppins SemiBold", "Poppins Thin";
margin: 0;
}
/*----- Body Style End ----- */
/*----- Web Colors Code Start ----- */
.orange
{
background-color: #fc6655 !important;
}
.dark
{
background-color: #373856 !important;
}
.light
{
background-color: #3b3c5a !important;
}
/*----- Web Colors Code End ----- */
/*----- Headings Style Start ----- */
h1
{
font-size: 48px !important;
color: white !important;
font-weight: bolder !important;
text-transform: uppercase;
text-align: center !important;
text-shadow: 0 2px 0 #000;
padding: 0 0 25px 0;
}
h2
{
font-size: 36px !important;
color: white !important;
font-weight: bold !important;
text-transform: unset;
padding: 20px 0 0 0;
text-shadow: 0 2px 0 #000000;
}
h3
{
font-size: 17px !important;
color: #fc6655 !important;
font-weight: bold !important;
text-transform: unset;
padding: 15px 0 13px 0;
cursor: pointer;
}
h3:hover
{
color: #373856 !important;
}
h4
{
font-size: 16px !important;
color: #ffffff !important;
text-align: left;
text-transform: unset;
font-weight: bold !important;
margin: 0 !important;
padding: 3px 0 0 0;
}
h5
{
font-size: 15px !important;
color: #373856 !important;
font-weight: normal !important;
text-align: left;
display: inline-block;
}
h6
{
font-size: 14px !important;
color: #373856 !important;
font-weight: bold !important;
text-transform: unset;
padding: 23px 0 0 0 !important;
}
p
{
font-size: 14px !important;
color: white;
text-align: center;
font-weight: normal;
line-height: 28px;
}
a
{
color: #babcb7 !important;
}
/*----- Headings Style End ----- */
/*----- Flex Style Start ----- */
.d-flex
{
display: flex;
}
.spaceBetween
{
justify-content: space-between
}
.j-content-center
{
justify-content: center;
}
/*----- Flex Style End ----- */
/*----- Blog Page Style Start ----- */
/*----- Logo & Navigation Section Style Start ----- */
.navBar {
background-color: white;
padding-top: 0px !important;
padding-bottom: 0px !important;
width: 100%;
border-radius: 0px;
}
.navbar-light .navbar-nav .nav-link
{
padding: 30px 40px 30px 40px !important;
}
.navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover
{
background-color: unset;
color: #ff655b !important;
}
.navBorder
{
border: unset !important;
}
/*----- Logo & Navigation Section Style End ----- */
/*----- Banner Section Style Start ----- */
#banner {
width: 100%;
background-repeat: no-repeat;
background-attachment: scroll;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
padding: 90px 0 90px 0;
}
/*----- Banner Section Style End ----- */
/*----- Blog Detail Section Style Start ----- */
.breadcrumb
{
margin-top: 30px;
}
.breadcrumb-item.active
{
color: #ff6460 !important;
}
.colPadding
{
padding: 0 !important;
}
.blogImage
{
margin-top: 30px;
width: 100%;
-moz-transition: all 0.3s;
-webkit-transition: all 0.3s;
transition: all 0.3s;
cursor: pointer;
}
.blogImage:hover
{
-moz-transform: scale(1.1);
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
.blogUser
{
margin-right: 10px;
}
.colBorder
{
border-right: 1px solid #cccccc !important;
border: 0px;
}
.pagination
{
margin-top: 70px;
}
.page-item
a
{
color: #c2c2c2 !important;
}
.page-item
a:hover
{
color: #fff !important;
}
.page-link:hover
{
background-color: #fc6655 !important;
border-color: #fc6655 !important;
}
/*----- SideBar Section Style Start ----- */
.sideBarBox
{
width: 100%;
background-color: #f2f3f7;
border-radius: 4px;
border: 1px solid #e5e5e5;
margin: 30px 0 0 0;
padding: 0 0 30px 0;
}
.sideBar
{
width: 100%;
background-image: url(../images/sidebar-bg.png);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
padding: 40px 0 40px 0;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
text-align: center;
margin-bottom: 30px;
}
.sidebarInput
{
height: 49px !important;
padding: 0 0 0 17px !important;
font-size: 14px !important;
border-top-right-radius: 0px !important;
border-bottom-right-radius: 0px !important;
width: 80% !important;
}
.testButton
{
padding: 15px 20px !important;
border-top-left-radius: 0px !important;
border-bottom-left-radius: 0px !important;
border: 0px !important;
color: white !important;
font-size: 13px !important;
}
.recentTitleBox
{
width: 100%;
background-color: #fc6655;
padding: 15px 20px 13px 20px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.bottomStyle
{
margin-top: -4px;
}
.recentImage
{
margin-top: 20px;
margin-right: 15px;
}
.sideBarHeading
p
{
color: #707071 !important;
text-align: left;
font-size: 13px !important;
line-height: 22px !important;
}
.borderBottom
{
width: 100%;
height: 1px;
background-color: #e5e5e5;
margin-top: 8px;
}
.hostingLogo
{
margin: 20px 0 13px 0;
}
.reviewButton
{
border: 0px !important;
background-color: transparent !important;
color: #373856 !important;
font-size: 16px !important;
padding: 10px 0 0 0 !important;
}
.reviewButton:hover
{
color: #fc6655 !important;
}
.reviewIcon:hover
{
background-color: #9e0202;
}
.newsletterPadding
{
padding: 55px 0 55px 0;
}
.w65
{
width: 73% !important;
}
/*----- SideBar Section Style End ----- */
/*----- Blog Detail Section Style End ----- */
/*----- Subscribe Section Style Start ----- */
.subscribeBackground {
width: 100%;
background-image: url(../images/subscribe-background.jpg);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
padding: 50px 0 50px 0;
margin: 80px 0 0 0;
}
.subscribeTitle
h2
{
font-size: 30px !important;
color: #ffffff !important;
text-transform: unset;
padding: 0 !important;
}
.subscribeTitle
h3
{
font-size: 16px !important;
color: #a2a5c4 !important;
text-transform: uppercase;
}
.SubscribeInput
{
height: 50px !important;
font-size: 13px !important;
padding-left: 20px !important;
margin-top: 25px;
background-color: rgba(242, 243, 255, 0.2) !important;
border: 1px solid rgba(242, 245, 247, 0.3) !important;
color: #ffffff !important;
}
.updateButton
{
width: 100%;
text-align: center;
padding: 11px 0 11px 0 !important;
color: white;
text-transform: uppercase;
margin-top: 25px;
}
/*----- Subscribe Section Style End ----- */
/*----- Footer Section Style Start ----- */
.footer
{
width: 100%;
padding: 40px 0 40px 0;
}
.footerTitle
h2
{
font-size: 22px !important;
color: white !important;
text-shadow: unset !important;
border-bottom: 1px solid #353654;
padding: 0 0 20px 0;
}
.footerLogo
{
margin-top: 20px;
}
.footerTitle
p
{
color: #babcb7 !important;
text-align: justify !important;
padding: 15px 0 0 0;
line-height: 30px;
}
.flex-column
{
margin-top: 25px;
}
.nav-link
{
padding: 1rem 1rem !important;
border-bottom: 1px dashed #353654;
}
.nav-link:hover
{
color: #ff6157 !important;
}
.copyright
{
width: 100%;
background-color: #2c2d49;
padding: 15px 0 15px 0;
text-align: center;
}
.copyrightTitle
p
{
color: #fff !important;
padding: 0 !important;
margin: 0 !important;
}
.copyrightTitle
p span
{
color: #ff6157 !important;
}
/*----- Footer Section Style End ----- */
/*----- Blog Page Style End ----- */
/*----- Media Query Style Start {480px} ----- */
@media only screen and (max-width: 480px)
{
.responsive
{
padding-left: 45px;
}
.sidebarInput
{
height: 49px !important;
padding: 0 0 0 17px !important;
font-size: 14px !important;
border-top-right-radius: 0px !important;
border-bottom-right-radius: 0px !important;
width: 79% !important;
}
.footerTitle
h2
{
font-size: 22px !important;
color: white !important;
text-shadow: unset !important;
border-bottom: 1px solid #353654;
padding: 20px 0 20px 0 !important;
}
}
/*----- Media Query Style End {480px} ----- */
/*----- Media Query Style Start {360px} ----- */
@media only screen and (max-width: 360px)
{
.responsive
{
padding-left: 45px;
}
.sidebarInput
{
height: 49px !important;
padding: 0 0 0 17px !important;
font-size: 14px !important;
border-top-right-radius: 0px !important;
border-bottom-right-radius: 0px !important;
width: 71% !important;
}
.footerTitle
h2
{
font-size: 22px !important;
color: white !important;
text-shadow: unset !important;
border-bottom: 1px solid #353654;
padding: 20px 0 20px 0 !important;
}
}
/*----- Media Query Style End {360px} ----- */
/*----- Media Query Style Start {320px} ----- */
@media only screen and (max-width: 320px)
{
.responsive
{
padding-left: 45px;
}
.sidebarInput
{
height: 49px !important;
padding: 0 0 0 17px !important;
font-size: 14px !important;
border-top-right-radius: 0px !important;
border-bottom-right-radius: 0px !important;
width: 67% !important;
}
.footerTitle
h2
{
font-size: 22px !important;
color: white !important;
text-shadow: unset !important;
border-bottom: 1px solid #353654;
padding: 20px 0 20px 0 !important;
}
}
.page-numbers {
position: relative;
display: block;
padding: 0.5rem 0.75rem;
margin-left: -1px;
line-height: 1.25;
/*color: #007bff;*/
color: #c2c2c2;
background-color: #fff;
border: 1px solid #dee2e6;
}
.page-numbers.current,
a.page-numbers:hover {
z-index: 2;
color: #0056b3;
text-decoration: none;
background-color: #e9ecef;
border-color: #dee2e6;
}
.page-numbers:focus{
z-index: 2;
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.prev{
margin-left: 0;
border-top-left-radius: 0.25rem;
border-bottom-left-radius: 0.25rem;
}
.next{
border-top-right-radius: 0.25rem;
border-bottom-right-radius: 0.25rem;
}
.nav-links{
display: inherit;
}
.screen-reader-text{
display: none;
}
/*----- Media Query Style End {320px} ----- */
<?php
include get_template_directory().'/inc/functions-admin.php';
function vqode_script_enqueue()
{
wp_enqueue_style('customstyle1', get_template_directory_uri() . '/css/custom.css', array(), '1.0.0', 'all');
wp_enqueue_style('customstyle4', get_template_directory_uri() . '/css/bootstrap-reboot.css', array(), '1.0.0', 'all');
wp_enqueue_style('customstyle5', get_template_directory_uri() . '/css/bootstrap-grid.css', array(), '1.0.0', 'all');
wp_enqueue_style('customstyle6', get_template_directory_uri() . '/css/bootstrap.css', array(), '1.0.0', 'all');
wp_enqueue_script('customjs1', get_template_directory_uri() . '/js/bootstrap.bundle.js', array(), '1.0.0', true);
wp_enqueue_script('customjs2', get_template_directory_uri() . '/js/bootstrap.js', array(), '1.0.0', true);
}
add_action('wp_enqueue_scripts', 'vqode_script_enqueue');
function subscribe_hosting_shortcode() {
ob_start();
get_template_part('hosting');
return ob_get_clean();
}
add_shortcode('subscribe-to-hosting', 'subscribe_hosting_shortcode');
add_action('init', 'do_output_buffer');
function do_output_buffer() {
ob_start();
}
function vqode_theme_supports(){
add_theme_support('menus');
add_theme_support('custom-background');
add_theme_support( 'post-thumbnails', array('post') );
register_nav_menu('primary', 'Primary Header Navigation');
}
add_action('init', 'vqode_theme_supports');
$paged = ($_GET['paged'])? $_GET['paged'] : 1;
$args = array('post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 14, 'paged' => $paged);
query_posts($args);
function my_post_queries( $query ) {
// do not alter the query on wp-admin pages and only alter it if it's the main query
if (!is_admin() && $query->is_main_query()){
// alter the query for the home and category pages
if(is_home()){
$query->set('posts_per_page', 14);
}
if(is_category()){
$query->set('posts_per_page', 3);
}
}
}
add_action( 'pre_get_posts', 'my_post_queries' );
<?php get_header();
the_content();
?>
<!-- Banner Section Code Start-->
<!-------------------->
<div id="banner" style="background-image: url(<?php echo get_template_directory_uri(); ?>/images/banner-image.png);">
<div class="container">
<div class="row">
<div class="col-sm-12">
<h1>Blog News</h1>
</div>
<div class="col-sm-6 offset-sm-3">
<p>All of us have been in a position where we were unable to find the most suitable host or even knew
what kind of web hosting service we needed. We decided to take action and went on with the idea of
making full</p>
</div>
</div>
</div>
</div>
<!-------------------->
<!-- Banner Section Code End-->
<!-- Blog Posts Section Code Start-->
<!-------------------->
<div class="container">
<div class="row">
<div class="col-sm-12">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Library</li>
</ol>
</nav>
</div>
<div class="col-sm-8">
<div class="row">
<?php
if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="col-lg-6">
<img class="blogImage" src="<?php echo the_post_thumbnail(); ?>
<h3><?php the_title(); ?></h3>
<div class="row">
<div class="col-sm-6 colBorder">
<img class="blogUser"
src="">
<h5><?php the_author(); ?></h5>
</div>
<div class="col-sm-6">
<h5 class="pt-1 responsive"><?php echo get_the_date(); ?></h5>
</div>
</div>
</div>
<?php endwhile; ?>
<div class="d-flex j-content-center">
<nav aria-label="Page navigation example">
<ul class="pagination">
<?php the_posts_pagination( array(
'mid_size' => 6,
'prev_text' => __( '&laquo;', 'textdomain' ),
'next_text' => __( '&raquo;', 'textdomain' ),
) ); ?>
</ul>
</nav>
</div>
<?php else : ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
<!-- <div class="d-flex j-content-center">-->
<!-- <nav aria-label="Page navigation example">-->
<!-- <ul class="pagination">-->
<!-- <li class="page-item">-->
<!-- <a class="page-link" href="#" aria-label="Previous">-->
<!-- <span aria-hidden="true">&laquo;</span>-->
<!-- </a>-->
<!-- </li>-->
<!-- <li class="page-item"><a class="page-link" href="#">01</a></li>-->
<!-- <li class="page-item"><a class="page-link" href="#">02</a></li>-->
<!-- <li class="page-item"><a class="page-link" href="#">03</a></li>-->
<!-- <li class="page-item"><a class="page-link" href="#">04</a></li>-->
<!-- <li class="page-item"><a class="page-link" href="#">05</a></li>-->
<!-- <li class="page-item"><a class="page-link" href="#">06</a></li>-->
<!---->
<!-- <li class="page-item">-->
<!-- <a class="page-link" href="#" aria-label="Next">-->
<!-- <span aria-hidden="true">&raquo;</span>-->
<!-- </a>-->
<!-- </li>-->
<!-- </ul>-->
<!-- </nav>-->
<!-- </div>-->
</div>
<div class="col-md-4">
<div class="sideBarBox">
<div class="sideBar">
<img src="images/sidebar-hosting-icon.png">
<h2>How fast is your hosting?</h2>
</div>
<div class="col-sm-12">
<form class="form-inline">
<input class="form-control sidebarInput" type="search" placeholder="Enter URL"
aria-label="Search">
<button class="btn btn-outline-success testButton dark" type="submit">Test</button>
</form>
</div>
</div>
<div class="sideBarBox">
<div class="recentTitleBox">
<div class="d-flex spaceBetween">
<h4>Recent Posts</h4>
<img src="images/recent-icon.png">
</div>
</div>
<div class="d-flex j-content-center">
<img class="bottomStyle" src="images/bottom-style.png">
</div>
<div class="col-sm-12">
<div class="media">
<img class="recentImage" src="images/recent-image-1.png" alt=""/>
<div class="media-body">
<h6>How Much Money Do </h6>
<div class="sideBarHeading">
<p>Do you to Make Money Online in 2018 but scared of scams?</p>
</div>
</div>
</div>
</div>
<div class="borderBottom"></div>
<div class="col-sm-12">
<div class="media">
<img class="recentImage" src="images/recent-image-2.png" alt=""/>
<div class="media-body">
<h6>7 Cheap Cloud Hosting Providers </h6>
<div class="sideBarHeading">
<p>Do you to Make Money Online in 2018 but scared of scams?</p>
</div>
</div>
</div>
</div>
<div class="borderBottom"></div>
<div class="col-sm-12">
<div class="media">
<img class="recentImage" src="images/recent-image-3.png" alt=""/>
<div class="media-body">
<h6>35 Legitimate Ways To Make</h6>
<div class="sideBarHeading">
<p>Do you to Make Money Online in 2018 but scared of scams?</p>
</div>
</div>
</div>
</div>
<div class="borderBottom"></div>
<div class="col-sm-12">
<div class="media">
<img class="recentImage" src="images/recent-image-4.png" alt=""/>
<div class="media-body">
<h6>Future Of SEO in 2019</h6>
<div class="sideBarHeading">
<p>Do you to Make Money Online in 2018 but scared of scams?</p>
</div>
</div>
</div>
</div>
</div>
<div class="sideBarBox">
<div class="recentTitleBox">
<div class="d-flex spaceBetween">
<h4>Top New Posts</h4>
<img src="images/recent-icon.png">
</div>
</div>
<div class="d-flex j-content-center">
<img class="bottomStyle" src="images/bottom-style.png">
</div>
<div class="col-sm-12">
<div class="media">
<img class="recentImage" src="images/recent-image-1.png" alt=""/>
<div class="media-body">
<h6>How Much Money Do </h6>
<div class="sideBarHeading">
<p>Do you to Make Money Online in 2018 but scared of scams?</p>
</div>
</div>
</div>
</div>
<div class="borderBottom"></div>
<div class="col-sm-12">
<div class="media">
<img class="recentImage" src="images/recent-image-2.png" alt=""/>
<div class="media-body">
<h6>7 Cheap Cloud Hosting Providers </h6>
<div class="sideBarHeading">
<p>Do you to Make Money Online in 2018 but scared of scams?</p>
</div>
</div>
</div>
</div>
<div class="borderBottom"></div>
<div class="col-sm-12">
<div class="media">
<img class="recentImage" src="images/recent-image-3.png" alt=""/>
<div class="media-body">
<h6>35 Legitimate Ways To Make</h6>
<div class="sideBarHeading">
<p>Do you to Make Money Online in 2018 but scared of scams?</p>
</div>
</div>
</div>
</div>
<div class="borderBottom"></div>
<div class="col-sm-12">
<div class="media">
<img class="recentImage" src="images/recent-image-4.png" alt=""/>
<div class="media-body">
<h6>Future Of SEO in 2019</h6>
<div class="sideBarHeading">
<p>Do you to Make Money Online in 2018 but scared of scams?</p>
</div>
</div>
</div>
</div>
</div>
<div class="sideBarBox pb-0">
<div class="recentTitleBox">
<div class="d-flex spaceBetween">
<h4>Top Hosting</h4>
<img src="images/hosting-icon.png">
</div>
</div>
<div class="d-flex j-content-center">
<img class="bottomStyle" src="images/bottom-style.png">
</div>
<div class="col-sm-12">
<div class="d-flex spaceBetween">
<img class="hostingLogo" src="images/hosting-logo.png">
<button class="btn btn-outline-success reviewButton" type="submit"><i class="fas fa-eye"></i>
Review
</button>
</div>
</div>
<div class="borderBottom"></div>
<div class="col-sm-12">
<div class="d-flex spaceBetween">
<img class="hostingLogo" src="images/hosting-logo.png">
<button class="btn btn-outline-success reviewButton" type="submit"><i class="fas fa-eye"></i>
Review
</button>
</div>
</div>
<div class="borderBottom"></div>
<div class="col-sm-12">
<div class="d-flex spaceBetween">
<img class="hostingLogo" src="images/hosting-logo.png">
<button class="btn btn-outline-success reviewButton" type="submit"><i class="fas fa-eye"></i>
Review
</button>
</div>
</div>
<div class="borderBottom"></div>
<div class="col-sm-12">
<div class="d-flex spaceBetween">
<img class="hostingLogo" src="images/hosting-logo.png">
<button class="btn btn-outline-success reviewButton" type="submit"><i class="fas fa-eye"></i>
Review
</button>
</div>
</div>
<div class="borderBottom"></div>
<div class="col-sm-12">
<div class="d-flex spaceBetween">
<img class="hostingLogo" src="images/hosting-logo.png">
<button class="btn btn-outline-success reviewButton" type="submit"><i class="fas fa-eye"></i>
Review
</button>
</div>
</div>
<div class="borderBottom"></div>
<div class="col-sm-12">
<div class="d-flex spaceBetween">
<img class="hostingLogo" src="images/hosting-logo.png">
<button class="btn btn-outline-success reviewButton" type="submit"><i class="fas fa-eye"></i>
Review
</button>
</div>
</div>
</div>
<div class="sideBarBox">
<div class="sideBar newsletterPadding">
<img src="images/newsletter-icon.png">
<h2>Newsletter</h2>
</div>
<div class="col-sm-12">
<form class="form-inline">
<input class="form-control sidebarInput w65" type="search" placeholder="Newsletter"
aria-label="Search">
<button class="btn btn-outline-success testButton orange " type="submit">Submit</button>
</form>
</div>
</div>
</div>
</div>
</div>
<!-------------------->
<!-- Blog Posts Section Code End-->
<!-- Subscribe Section Code Start-->
<!-------------------->
<div class="subscribeBackground">
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="subscribeTitle">
<h3>SUBSCRIBE TO MY NEWSLETTER</h3>
<h2>Stay up to date with my blogging news</h2>
</div>
</div>
<div class="col-sm-4">
<input type="name" class="form-control SubscribeInput" id="exampleInputName"
aria-describedby="emailHelp" placeholder="Name">
</div>
<div class="col-sm-4">
<input type="email" class="form-control SubscribeInput" id="exampleInputEmail1"
aria-describedby="emailHelp" placeholder="Email">
</div>
<div class="col-sm-4">
<button class="btn orange updateButton" type="submit">Stay Update!</button>
</div>
</div>
</div>
</div>
<!-------------------->
<!-- Subscribe Section Code End-->
<?php get_footer(); ?>
<?php
// Insert Default pages
define('BANNER_PAGE', 'Home Banner');
define('HOSTING_REVIEW_PAGE', 'Web Hosting Review');
define('ABOUT_US_PAGE', 'About Us');
define('RECENT_REVIEWS_PAGE', 'Recent Reviews');
define('TOP_BLOG_PAGE', 'Top Blog Posts');
define('NEWSLETTER_PAGE', 'Newsletter Page');
if (isset($_GET['activated']) && is_admin()){
$defaultPagesBanner = [BANNER_PAGE, HOSTING_REVIEW_PAGE, ABOUT_US_PAGE, RECENT_REVIEWS_PAGE, TOP_BLOG_PAGE, NEWSLETTER_PAGE];
for ($i = 0; $i < count($defaultPagesBanner); $i++) {
$new_page_title = $defaultPagesBanner[$i];
$page_check = get_page_by_title($new_page_title);
$new_page = array(
'post_type' => 'page',
'post_title' => $new_page_title,
'post_content' => '',
'post_status' => 'publish',
'post_author' => 1,
);
if(!isset($page_check->ID)){
$new_page_id = wp_insert_post($new_page);
}
}
}
<?php
require_once 'default-pages.php';
require_once 'shortcodes.php';
require_once 'post-types.php';
require_once 'post-types.php';
require_once 'theme-settings.php';
// Adding settings link to admin side menu.
function vq_add_theme_setting_page() {
add_menu_page('Theme Options', 'Theme Options', 'manage_options', 'theme_options.php', 'vq_theme_settings_page');
}
<?php
function create_hosting_reviews()
{
register_post_type('hosting_reviews',
array(
'labels' => array(
'name' => __('Hosting Reviews'),
'singular_name' => __('Hosting Review')
),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'hosting_reviews'),
'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields')
)
);
}
add_action('init', 'create_hosting_reviews');
<?php
// WP Shortcode
function vq_recent_blogs_shortcode() {
$the_query = new WP_Query( array(
'posts_per_page' => 3,
));
$i = 1;
$str = "<div class='container'> <div class='row'>";
if ( $the_query->have_posts() ) :
while ( $the_query->have_posts() ) : $the_query->the_post();
$str .= '<div class="col-sm-4">
<div class="recentReviewBox white">
<img class="recentReviewImage" src="'. get_the_post_thumbnail_url() .'" alt="">
<div class="col-sm-12">
<div class="recentReviewHeading">
<h4>0'. $i++ .'</h4>
</div>
<div class="topBlog">
<h4>'. get_the_title() .'</h4>
</div>
<div class="post">
<p>'. get_the_excerpt() .'</p>
</div>
</div>
<div class="hrBorder mt-0"></div>
<div class="d-flex j-content-center">
<a href="blog.html"><button type="button" class="btn blogReadMore mt-3">Read More</button></a>
</div>
</div>
</div>';
endwhile;
else :
__('No News');
endif;
return $str .= '</div></div>';
}
add_shortcode('recent-blogs', 'vq_recent_blogs_shortcode');
<?php
function vq_theme_settings_page()
{
?>
<div class="section panel">
<h1>Theme Options</h1>
<!-- <form method="post" enctype="multipart/form-data" action="options.php">-->
<?php
// settings_fields('pu_theme_options');
// do_settings_sections('pu_theme_options.php');
?>
<!-- <p class="submit">-->
<!-- <input type="submit" class="button-primary" value="--><?php //_e('Save Changes') ?><!--" />-->
<!-- </form>-->
</div>
<?php
}
add_action('admin_menu', 'vq_add_theme_setting_page');
/*
VQode Course
*/
/*----- Body Style Start ----- */
html
{
scroll-behavior: smooth;
}
body
{
font-family: 'Exo', Sans-serif !important;
margin: 0;
}
/*----- Body Style End ----- */
.columnPadding
{
padding: 0 90px 0 90px !important;
}
/*----- Placeholder Code Start ----- */
::-webkit-input-placeholder { /* Edge */
color: white !important;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
color: white !important;
}
::placeholder {
color: white !important;
}
.form-inline > input::placeholder
{
color: #a2b5cf !important;
}
.form-group > input::placeholder
{
color: #a2b5cf !important;
}
/*----- Placeholder Code End ----- */
/*----- Web Colors Code Start ----- */
.orange
{
background-color: #f06e58 !important;
}
.white
{
background-color: white !important;
}
.dark
{
background-color: #373856 !important;
}
.light
{
background-color: #3b3c5a !important;
}
.greenColor
{
color: #8acc00 !important;
}
.orangeColor
{
color: #f06e58 !important;
}
.darkColor
{
color: #373856 !important;
}
.lightColor
{
color: #3b3c5a !important;
}
.whiteColor
{
color: white !important;
}
.box
{
width: 150px;
height: 150px;
background-color: red;
}
/*----- Web Colors Code End ----- */
#activeColor
{
color: #f06e58 !important;
}
/*----- Width Start ----- */
.w-100
{
width: 100%;
}
.top
{
top: 0px !important;
}
.right-0
{
right: 0px !important;
}
.right
{
right: 15px !important;
}
.right-5
{
right: 5px !important;
}
.top-10
{
top: 10px !important;
}
.left-0
{
left: 0px !important;
}
.left-5
{
left: 5px !important;
}
.top-20
{
top: 20px !important;
}
/*----- Width End ----- */
/*----- Headings Style Start ----- */
h1
{
font-size: 48px !important;
color: white !important;
font-weight: bolder !important;
text-transform: uppercase;
text-align: center !important;
text-shadow: 0 2px 0 #000;
padding: 0 0 25px 0;
}
h2
{
font-size: 36px !important;
color: white !important;
font-weight: bold !important;
text-transform: unset;
padding: 20px 0 0 0;
text-shadow: 0 2px 0 #000000;
}
h3
{
font-size: 17px !important;
color: #fc6655 !important;
font-weight: bold !important;
text-transform: unset;
padding: 15px 0 0 0;
cursor: pointer;
}
h3:hover
{
color: #373856 !important;
}
h4
{
font-size: 16px !important;
color: #ffffff !important;
text-align: left;
text-transform: unset;
font-weight: bold !important;
margin: 0 !important;
padding: 3px 0 0 0;
}
h5
{
font-size: 15px !important;
color: #373856 !important;
font-weight: normal !important;
text-align: left;
display: inline-block;
}
h6
{
font-size: 14px !important;
color: #373856 !important;
font-weight: bold !important;
text-transform: unset;
padding: 23px 0 0 0 !important;
}
p
{
font-size: 14px !important;
color: white;
font-weight: normal;
line-height: 28px;
}
a
{
color: #babcb7 !important;
}
/*----- Headings Style End ----- */
/*----- Flex Style Start ----- */
.d-flex
{
display: flex;
}
.spaceBetween
{
justify-content: space-between
}
.j-content-center
{
justify-content: center;
}
.dInlineBlock
{
display: inline-block;
}
.f-end
{
justify-content: flex-end;
}
.inline-flex
{
display: inline-flex;
}
/*----- Flex Style End ----- */
/*----- Home Page Style Start ----- */
/*----- Logo & Navigation Section Style Start ----- */
.navBar {
background-color: white;
padding-top: 0px !important;
padding-bottom: 0px !important;
width: 100%;
border-radius: 0px;
}
.navbar-light .navbar-nav .nav-link
{
padding: 30px 20px 30px 20px !important;
color: black !important;
}
.navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover
{
background-color: unset;
color: #ff655b !important;
}
.navBorder
{
border: unset !important;
}
/*----- Logo & Navigation Section Style End ----- */
/*----- Home Banner Section Style Start ----- */
#homeBanner {
width: 100%;
background-image: url(../images/home-banner.jpg);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
padding: 60px 0 0px 0;
}
.font68
{
font-size: 68px !important;
text-align: center !important;
padding: 75px 0 10px 0;
}
.font16
{
font-size: 16px !important;
text-align: center !important;
}
.testSpeedIcon
{
margin-top: -4px;
margin-right: 5px;
}
.bannerSearch
{
height: 62px !important;
width: 100% !important;
border-radius: 50px !important;
border: 0px !important;
padding-left: 33px !important;
font-size: 14px !important;
padding-top: 4px !important;
margin-top: 40px;
}
.searchIcon
{
position: absolute;
margin-top: 17px;
left: 0px;
}
.homeSpeedButton
{
padding: 15px 100px !important;
color: white !important;
border: 0px !important;
border-radius: 50px !important;
margin-top: 30px;
}
.homeSpeedButton:hover
{
background-color: #373856 !important;
}
.mac
{
width: 100%;
margin-top: 100px;
}
/*----- Home Banner Section Style End ----- */
/*----- Home Hosting Review Section Style Start ----- */
.hostingBackground {
width: 100%;
background-image: url(../images/hosting-review.jpg);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
padding: 40px 0 40px 0;
}
.upTimeIcon
{
margin-top: -5px;
margin-right: 5px;
}
.reviewHeading
h3
{
font-size: 22px !important;
color: #f06e58 !important;
text-align: left !important;
position: relative;
top: 6px;
}
.reviewHeading
p
{
color: #515151 !important;
text-align: left !important;
font-size: 15px !important;
}
.table
{
background-color: white !important;
border-radius: 0px;
margin-bottom: 0px !important;
}
.tableShadow
{
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}
.borderTop0
{
border-top: 0px !important;
background-color: #373856 !important;
color: white !important;
}
.borderRight0
{
border-right: 0px !important;
}
.table thead th
{
border-right: 1px solid #474866;
}
.table td, .table th
{
padding: 1rem !important;
border-right: 1px solid #e5e5e5;
padding-left: 25px !important;
}
.borderLeftRadius
{
border-top-left-radius: 10px;
}
.borderRightRadius
{
border-top-right-radius: 10px;
}
.textAlignCenter
{
text-align: center;
}
/*----- Home Hosting Review Section Style End ----- */
/*----- About Section Style Start----- */
.aboutBackground
{
width: 100%;
padding: 60px 0 0 0;
}
.aboutImage
{
width: 100%;
}
.aboutHeading
h5
{
font-size: 20px !important;
text-transform: uppercase;
color: #f06e58 !important;
}
.aboutHeading
h2
{
font-size: 30px !important;
color: white; !important;
font-weight: normal !important;
line-height: 47px;
text-shadow: 0 0 0 !important;
}
.aboutHeading
p
{
color: #b9bcc5 !important;
font-size: 15px !important;
}
.table-responsive
{
overflow-x: hidden !important;
}
/*----- About Section Style End ----- */
/*----- Recent Reviews Section Style Start ----- */
.recentReviewHeading
h5
{
font-size: 25px !important;
text-transform: uppercase;
color: #f06e58 !important;
padding-top: 50px;
}
.recentReviewBorder
{
width: 80px;
height: 3px;
border-radius: 50px;
}
.recentReviewHeading
p
{
font-size: 15px !important;
padding-top: 15px;
}
.recentReviewBox
{
width: 100%;
box-shadow: 0px 0px 7px #c5c5c5;
border-radius: 5px;
padding-bottom: 20px;
margin-top: 30px;
}
.recentReviewImage
{
width: 100%;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.recentReviewHeading
h4
{
font-size: 15px !important;
text-transform: unset;
color: #353954 !important;
padding: 10px 0;
line-height: 24px;
}
.post
p
{
color: #6b6b6b !important;
text-align: justify !important;
}
.readMore
{
background-color: transparent !important;
color: #ff6663 !important;
font-weight: bold !important;
border: 0px !important;
padding: 0 !important;
font-size: 14px !important;
cursor: pointer;
}
.readMore:hover
{
color: #363756 !important;
}
.hrBorder
{
width: 100%;
height: 1px;
background-color: #e9e9eb;
margin-top: 50px;
}
/*----- Recent Reviews Section Style End ----- */
/*----- Top Blog Posts Section Style Start ----- */
.topBlog
h4
{
font-size: 15px !important;
text-transform: unset;
color: #f06e58 !important;
padding: 10px 0;
line-height: 24px;
}
.blogReadMore
{
background-color: transparent !important;
color: #8e8e8e !important;
font-weight: normal !important;
border: 0px !important;
padding: 0 !important;
font-size: 14px !important;
cursor: pointer;
}
.blogReadMore:hover
{
color: #363756 !important;
}
/*----- Top Blog Posts Section Style End ----- */
/*----- Home Page Style End ----- */
/*---------------------------------- */
/*----- Blog Page Style Start ----- */
/*----- Banner Section Style Start ----- */
#banner {
width: 100%;
background-image: url(../images/banner-image.png);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
padding: 90px 0 90px 0;
}
/*----- Banner Section Style End ----- */
/*----- Blog Detail Section Style Start ----- */
.breadcrumb
{
margin-top: 30px;
background-color: white !important;
border: 1px solid #e3e3e3;
}
.breadcrumb-item.active
{
color: #ff6460 !important;
}
.breadcrumb-item > a
{
color: #2c2c2c !important;
}
.breadcrumb-item+.breadcrumb-item::before
{
color: #2c2c2c !important;
}
.colPadding
{
padding: 0 !important;
}
.blogImage
{
margin-top: 30px;
width: 100%;
/*-moz-transition: all 0.3s;*/
/*-webkit-transition: all 0.3s;*/
/*transition: all 0.3s;*/
cursor: pointer;
}
/*.blogImage:hover*/
/*{*/
/* -moz-transform: scale(1.1);*/
/* -webkit-transform: scale(1.1);*/
/* transform: scale(1.1);*/
/*}*/
.blogUser
{
margin-right: 10px;
}
.colBorder
{
border-right: 1px solid #cccccc !important;
border: 0px;
}
.pagination
{
margin-top: 70px;
}
.page-item
a
{
color: #c2c2c2 !important;
}
.page-item
a:hover
{
color: #fff !important;
}
.page-link:hover
{
background-color: #fc6655 !important;
border-color: #fc6655 !important;
}
/*----- SideBar Section Style Start ----- */
.sideBarBox
{
width: 100%;
background-color: #f2f3f7;
border-radius: 4px;
border: 1px solid #e5e5e5;
margin: 30px 0 0 0;
padding: 0 0 30px 0;
}
.sideBar
{
width: 100%;
background-image: url(../images/sidebar-bg.png);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
padding: 40px 0 40px 0;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
text-align: center;
margin-bottom: 30px;
}
.sidebarInput
{
height: 49px !important;
padding: 0 0 0 17px !important;
font-size: 14px !important;
border-top-right-radius: 0px !important;
border-bottom-right-radius: 0px !important;
width: 77% !important;
}
.testButton
{
padding: 15px 20px !important;
border-top-left-radius: 0px !important;
border-bottom-left-radius: 0px !important;
border: 0px !important;
color: white !important;
font-size: 13px !important;
}
.recentTitleBox
{
width: 100%;
background-color: #fc6655;
padding: 15px 20px 13px 20px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.bottomStyle
{
margin-top: -4px;
}
.postBox
{
width: 100%;
background-color: white;
border-radius: 4px;
border: 1px solid #d9dade;
margin: 18px 0 0 0;
}
.postHeading
h3
{
font-size: 16px !important;
color: #373856 !important;
text-align: left;
padding: 10px 0 5px 17px;
margin: 0;
}
.postHeading
p
{
font-size: 14px !important;
color: #7286a2 !important;
text-align: left;
padding: 0px 18px;
}
.postImage
{
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.hostingLogo
{
margin: 20px 0 13px 0;
}
.reviewButton
{
border: 0px !important;
background-color: transparent !important;
color: #373856 !important;
font-size: 16px !important;
padding: 10px 0 0 0 !important;
}
.reviewButton:hover
{
color: #fc6655 !important;
}
.reviewIcon:hover
{
background-color: #9e0202;
}
.newsletterPadding
{
padding: 55px 0 55px 0;
}
.w65
{
width: 73% !important;
}
/*----- SideBar Section Style End ----- */
/*----- Blog Detail Section Style End ----- */
/*----- Blog Single Style Start ----- */
.blogSingle
h3
{
font-size: 24px !important;
color: #fc6655;
text-align: left;
line-height: 35px;
}
.singleBox
{
border: 1px solid #d9d9d9;
background-color: white;
border-radius: 4px;
padding: 12px 20px;
width: max-content;
}
.userIcon
{
margin: 0 8px 0 0;
}
.blogSingle
h5
{
font-size: 15px !important;
color: #7286a2 !important;
text-align: left;
margin: 0;
}
.d-inline-block
{
display: inline-block;
}
/*----- Blog Single Style End ----- */
/*----- Blog Single Detail Style Start ----- */
.blogDetailBox
{
width: 100%;
background-color: white;
border: 1px solid #e5e5e5;
border-radius: 4px;
margin: 30px 0 0 0;
padding: 0 0 20px 0;
}
.singleUser
{
margin: 8px 6px 10px 0;
}
.singleDetail
h5
{
font-size: 15px;
color: #373856 !important;
text-align: left;
font-weight: bold !important;
position: relative;
top: 1px;
}
.borderHolder
{
border-right: 1px solid #e5e5e5;
}
.bottomHolder
{
border-bottom: 1px solid #e5e5e5;
border-top: 1px solid #e5e5e5;
}
.singleDetail
h3
{
font-size: 30px !important;
text-align: left;
font-weight: bold !important;
padding: 15px 0 15px 0;
margin: 0;
color: #111111 !important;
}
.singleDetail
p
{
font-size: 16px !important;
color: #373856 !important;
text-align: left;
padding: 10px 0 0 0;
text-align: justify;
}
.cloudBox
{
width: 100%;
background-color: #373856;
padding: 10px 20px;
}
.cloudBoxBottom
{
width: 100%;
height: 5px;
background-image: url(../images/cloud-bottom.png);
}
.singleDetail
h4
{
font-size: 30px !important;
text-align: left;
font-weight: bold !important;
padding: 0px;
}
/*----- Blog Single Detail Style End ----- */
/*----- Subscribe Section Style Start ----- */
.subscribeBackground {
width: 100%;
background-image: url(../images/subscribe-background.jpg);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
padding: 50px 0 50px 0;
margin: 80px 0 0 0;
}
.subscribeTitle
h2
{
font-size: 30px !important;
color: #ffffff !important;
text-transform: unset;
padding: 0 !important;
}
.subscribeTitle
h3
{
font-size: 16px !important;
color: #a2a5c4 !important;
text-transform: uppercase;
}
.SubscribeInput
{
height: 50px !important;
font-size: 13px !important;
padding-left: 20px !important;
margin-top: 25px;
background-color: rgba(242, 243, 255, 0.2) !important;
border: 1px solid rgba(242, 245, 247, 0.3) !important;
color: #ffffff !important;
}
.updateButton
{
width: 100%;
text-align: center;
padding: 11px 0 11px 0 !important;
color: white;
text-transform: uppercase;
margin-top: 25px;
}
.updateButton:hover
{
background-color: white !important;
color: #fc6655 !important;
}
/*----- Subscribe Section Style End ----- */
/*----- Footer Section Style Start ----- */
.footer
{
width: 100%;
padding: 40px 0 40px 0;
}
.footerTitle
h2
{
font-size: 22px !important;
color: white !important;
text-shadow: unset !important;
border-bottom: 1px solid #353654;
padding: 0 0 20px 0;
}
.footerLogo
{
margin-top: 20px;
}
.footerTitle
p
{
color: #babcb7 !important;
text-align: justify !important;
padding: 15px 0 0 0;
line-height: 30px;
}
.flex-column
{
margin-top: 25px;
}
.nav-link
{
padding: 1rem 1rem !important;
border-bottom: 1px dashed #353654;
}
.nav-link:hover
{
color: #ff6157 !important;
}
.copyright
{
width: 100%;
background-color: #2c2d49;
padding: 15px 0 15px 0;
text-align: center;
}
.copyrightTitle
p
{
color: #fff !important;
padding: 0 !important;
margin: 0 !important;
}
.copyrightTitle
p span
{
color: #ff6157 !important;
}
/*----- Footer Section Style End ----- */
/*----- Blog Page Style End ----- */
/*----- Summary Page Style Start ----- */
.summaryHeading
h3
{
font-size: 30px !important;
text-align: center;
}
.summaryBox
{
border: 1px solid #d4d4d4;
background-color: white;
padding: 5px 20px;
margin: 0;
}
.summaryHeading
h4
{
font-size: 20px !important;
text-align: center !important;
padding: 5px 0 0 0;
}
.summaryHeading
h5
{
font-size: 18px !important;
color: #444444 !important;
text-align: center !important;
display: inherit;
font-weight: bold !important;
padding: 0 !important;
margin: 0 !important;
line-height: 0;
position: relative;
top: 12px;
}
.summaryHostImage
{
border: 1px solid #d4d4d4;
padding: 15px;
box-sizing: border-box;
width: 100%;
margin: 17px 0 0 0;
}
.hostHeading
h5
{
font-size: 26px !important;
color: #fff !important;
text-align: center !important;
display: inherit;
font-weight: bold !important;
padding: 0 !important;
margin: 0 !important;
line-height: 0;
position: relative;
bottom: 127px;
}
.pTop-0
{
top: 0px !important;
}
.summaryTable
{
text-align: center;
}
.summarySocailIocn
{
display: inline-block;
position: absolute;
right: -27px;
cursor: pointer;
}
.top-50
{
top: 50px !important;
}
.top-133
{
top: 112px !important;
}
.top-177
{
top: 155px !important;
}
.top-100
{
top: 100px !important;
}
.tableBorder
{
border-right: 1px solid #fd8577 !important;
border-top: 0px !important;
font-size: 20px !important;
color: white;
font-weight: 700 !important;
}
.summaryTD
{
color: #444444 !important;
text-align: center;
font-size: 20px;
font-weight: 700 !important;
}
.radius
{
border-radius: 0px !important;
}
.table thead th
{
vertical-align: middle !important;
}
.table td, .table th
{
vertical-align: middle !important;
}
.summaryAfterBox
{
border: 1px solid #d4d4d4;
width: 100%;
padding: 6px 5px;
margin: 7px 0 0 0;
min-height: 91%;
text-align: center;
}
.bottomAdjust
{
bottom: 28px !important;
}
.top-7
{
top: 7px !important;
}
.responseHeading
h5
{
font-size: 12px !important;
color: #353535;
text-align: center;
font-weight: bold !important;
display: inherit;
}
.responseHeading
h4
{
font-size: 30px !important;
color: #fc6655 !important;
text-align: center;
font-weight: bold !important;
line-height: 23px;
}
.responseHeading
h4 span
{
font-size: 14px !important;
color: #353535 !important;
text-align: center;
font-weight: bold !important;
}
.responseHeading
h6
{
font-size: 12px !important;
color: #353535;
text-align: center;
font-weight: 600 !important;
padding: 0px !important;
margin: 0px !important;
line-height: 15px;
}
.mt17
{
margin-top: 17px;
}
.summaryPadding
{
padding: 0 5px !important;
}
.gradeIcon
{
margin-top: 10px;
}
.transform
{
text-transform: uppercase;
}
.detectedHeading
h4
{
font-size: 20px !important;
color: #353535 !important;
text-align: left !important;
font-weight: normal !important;
padding: 6px 0 0 0;
font-weight: 600 !important;
}
.hostsButton
{
font-size: 18px !important;
color: white !important;
padding: 10px 40px !important;
border-radius: 50px !important;
border: 0px !important;
cursor: pointer;
width: 100%;
margin: 0 0 20px 0;
}
.hostsButton:hover
{
background-color: #fc6655 !important;
}
.tableBody
{
border: 1px solid #dee2e6;
}
/*----- Summary Page Style End ----- */
/*----- Website Optimize Page Style Start ----- */
.optimizeBackground
{
padding: 90px 0 0 0;
}
.optimizeHeading
h2
{
font-size: 60px !important;
font-weight: bold !important;
box-shadow: unset !important;
text-align: left !important;
color: white !important;
text-transform: uppercase !important;
line-height: 88px;
}
.optimizeHireButton
{
background-color: transparent !important;
border: 2px solid white !important;
border-radius: 50px !important;
color: white !important;
padding: 12px 70px !important;
font-weight: bold;
font-size: 18px !important;
margin: 30px 0 0 0;
}
.optimizeHireButton:hover
{
border: 2px solid #ffffff !important;
background-color: #fc6655 !important;
}
/*----- Website Optimize Page Style End ----- */
/*----- Server Response Page Style Start ----- */
.serverTime
h2
{
font-size: 48px !important;
font-weight: bold !important;
color: #fc6655 !important;
text-align: center !important;
text-shadow: unset !important;
padding: 0 !important;
}
.serverTime
h4
{
font-size: 26px !important;
font-weight: bold !important;
color: #1d1d1d !important;
text-align: center !important;
text-shadow: unset !important;
padding: 0 !important;
}
/*----- Server Response Page Style End ----- */
/*----- Cache Page Style Start ----- */
.cacheBox
{
width: 95%;
padding: 15px 15px 0px 15px;
border: 1px solid #d4d4d4;
margin: 30px 10px 0 9px;
position: relative;
top: 17px;
}
.cacheHeading
h4
{
font-size: 24px !important;
color: #fc6655 !important;
text-align: left;
padding: 0px !important;
margin: 0px;
line-height: 0px !important;
position: relative;
top: 10px;
}
.cacheHeading
h5
{
font-size: 18px !important;
color: #fff !important;
padding: 0px !important;
margin: 0px !important;
line-height: 0px !important;
position: relative;
top: 2px;
font-weight: bold !important;
}
.cacheHeading
p
{
font-size: 15px !important;
color: #6a6a6a !important;
text-align: justify;
padding: 12px 0 0 0;
}
.cacheInfo
{
width: 100%;
padding: 15px 20px;
position: relative;
text-align: center;
cursor: pointer;
}
/*----- Cache Page Style End ----- */
/*-----Blog Full Detail Page Style Start ----- */
.blueHostHeading
h5
{
font-size: 24px !important;
color: #363636 !important;
text-align: left;
font-weight: bold !important;
padding: 20px 0 0 0;
}
.blueHostBox
{
width: 100%;
background-color: white;
border: 1px solid #d4d4d4;
padding: 20px 10px;
margin: 15px 0 0 0;
text-align: center;
}
.boxTopLeft
{
position: absolute;
top: 15px;
left: 0;
}
.boxTopLeftOther
{
position: absolute;
top: 15px;
left: 15px;
}
.boxTopRight
{
position: absolute;
bottom: 0px;
right: 15px;
}
.boxTopRightOther
{
position: absolute;
bottom: 0px;
right: 0px;
}
.blurHostPL
{
padding-left: 0px !important;
}
.blurHostPR
{
padding-right: 0px !important;
}
.blueHostHeading
h4
{
font-size: 20px !important;
color: #353535 !important;
font-weight: bold !important;
padding: 0px !important;
margin: 0px !important;
line-height: 0px !important;
text-transform: uppercase;
position: relative;
top: 15px;
}
.blueHostHeading
h2
{
font-size: 72px !important;
color: #fc6655 !important;
font-weight: bold !important;
text-shadow: unset !important;
padding: 0px !important;
margin: 0px !important;
line-height: 86px;
}
.blueHostHeading
h2 span
{
font-size: 72px !important;
color: #353535 !important;
font-weight: bold !important;
text-shadow: unset !important;
padding: 0px !important;
margin: 0px !important;
}
.blueHostSideBar
{
width: 95%;
padding: 15px 0px 15px 0px;
margin: 30px 10px 0 9px;
background-color: #1f1d27;
position: relative;
box-shadow: 0 8px 10px -6px black;
}
.cacheSidebar {
width: 100%;
background-image: url(../images/cache-sidebar-image.png);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
padding: 18px 10px;
margin: 15px 0 0 0;
}
.cacheSidebarHeading
h4
{
font-size: 34px !important;
color: white !important;
text-align: center;
font-weight: bold !important;
padding: 0px !important;
margin: 0px !important;
position: relative;
bottom: 11px;
}
.cursorPointer
{
cursor: pointer;
}
.speedButton
{
width: 100%;
border-radius: 4px !important;
border: 0px !important;
background-color: #46485e !important;
color: #b3bde7 !important;
font-size: 14px !important;
padding: 10px 10px !important;
margin: 10px 0 0 0;
}
.cacheSidebarInfo
{
width: 105.5%;
padding: 13px 20px;
position: relative;
text-align: left;
left: -10px;
}
.cacheSidebarCornerLeft
{
position: relative;
left: -10px;
}
.cacheSidebarCornerRight
{
position: relative;
left: 9px;
}
.cacheSidebarHeading
h5
{
font-size: 15px !important;
color: #822c22 !important;
text-align: left;
font-weight: normal !important;
padding: 0 !important;
margin: 0 !important;
line-height: 0 !important;
position: relative;
top: 9px;
}
.cacheSidebarHeading
h6
{
font-size: 24px !important;
color: #ffffff !important;
text-align: left;
font-weight: bold !important;
padding: 0 !important;
margin: 0 !important;
line-height: 0 !important;
position: relative;
top: 9px;
}
.cacheSidebarHeading
h6 span
{
font-size: 14px !important;
color: #822c22 !important;
font-weight: normal !important;
}
.webLocationIcon
{
margin: 0 10px 0 0;
}
.serverSidebarHeading
h5
{
font-size: 15px !important;
color: #ffffff !important;
text-align: left;
font-weight: normal !important;
padding: 0 !important;
margin: 0 !important;
line-height: 0 !important;
position: relative;
top: 11px;
}
.offerBox
{
width: 100%;
border: 1px solid #33323b;
background-color: transparent;
padding: 15px 0 10px 0;
margin: 15px 0 7px 0;
}
.offerHeading
h4
{
font-size: 20px !important;
color: white !important;
text-align: center !important;
font-weight: 600 !important;
position: relative;
z-index: 1000;
}
.offerHeading
h2
{
font-size: 72px !important;
color: #fc6655 !important;
text-align: center !important;
font-weight: bold !important;
padding: 0 !important;
margin: 0 !important;
position: relative;
z-index: 1000;
}
.offerHeading
h2 span
{
font-size: 18px !important;
color: white !important;
vertical-align: top;
position: relative;
top: 13px;
position: relative;
z-index: 1000;
}
.bestOffer
{
position: absolute;
top: 0;
}
/*-----Blog Full Detail Page Style End ----- */
/*----- Media Query Style Start {1366px} ----- */
@media only screen and (max-width: 1366px)
{
.homeSpeedButton
{
margin-bottom: 30px;
}
.font68
{
font-size: 68px !important;
text-align: center !important;
padding: 25px 0 10px 0;
}
.cacheSidebarInfo
{
width: 107%;
padding: 13px 20px;
position: relative;
text-align: left;
left: -10px;
}
.sidebarInput
{
height: 49px !important;
padding: 0 0 0 17px !important;
font-size: 14px !important;
border-top-right-radius: 0px !important;
border-bottom-right-radius: 0px !important;
width: 72% !important;
}
.w65
{
width: 65% !important;
}
}
/*----- Media Query Style End {1366px} ----- */
/*----- Media Query Style Start {1080px} ----- */
@media only screen and (max-width: 10806px)
{
}
/*----- Media Query Style Start {1080px} ----- */
/*----- Media Query Style Start {768px} ----- */
@media only screen and (max-width: 768px)
{
.responsive
{
padding-left: 45px;
}
.sidebarInput
{
height: 49px !important;
padding: 0 0 0 17px !important;
font-size: 14px !important;
border-top-right-radius: 0px !important;
border-bottom-right-radius: 0px !important;
width: 79% !important;
}
.footerTitle
h2
{
font-size: 22px !important;
color: white !important;
text-shadow: unset !important;
border-bottom: 1px solid #353654;
padding: 20px 0 20px 0 !important;
}
.font68
{
font-size: 40px !important;
text-align: center !important;
}
.searchIcon
{
position: absolute;
margin-top: 17px;
left: 7px;
}
#homeBanner {
width: 100%;
background-image: url(../images/home-banner.jpg);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
padding: 60px 0 40px 0;
}
.table-responsive
{
overflow-x: scroll !important;
}
.font16
{
font-size: 14px !important;
}
}
/*----- Media Query Style End {768px} ----- */
/*----- Media Query Style Start {720px} ----- */
@media only screen and (max-width: 720px)
{
.responsive
{
padding-left: 45px;
}
.sidebarInput
{
height: 49px !important;
padding: 0 0 0 17px !important;
font-size: 14px !important;
border-top-right-radius: 0px !important;
border-bottom-right-radius: 0px !important;
width: 79% !important;
}
.footerTitle
h2
{
font-size: 22px !important;
color: white !important;
text-shadow: unset !important;
border-bottom: 1px solid #353654;
padding: 20px 0 20px 0 !important;
}
.font68
{
font-size: 40px !important;
text-align: center !important;
}
.searchIcon
{
position: absolute;
margin-top: 17px;
left: 7px;
}
#homeBanner {
width: 100%;
background-image: url(../images/home-banner.jpg);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
padding: 60px 0 40px 0;
}
.table-responsive
{
overflow-x: scroll !important;
}
.font16
{
font-size: 14px !important;
text-align: unset !important;
}
}
/*----- Media Query Style End {720px} ----- */
/*----- Media Query Style Start {480px} ----- */
@media only screen and (max-width: 480px)
{
.responsive
{
padding-left: 45px;
}
.sidebarInput
{
height: 49px !important;
padding: 0 0 0 17px !important;
font-size: 14px !important;
border-top-right-radius: 0px !important;
border-bottom-right-radius: 0px !important;
width: 79% !important;
}
.footerTitle
h2
{
font-size: 22px !important;
color: white !important;
text-shadow: unset !important;
border-bottom: 1px solid #353654;
padding: 20px 0 20px 0 !important;
}
.font68
{
font-size: 40px !important;
text-align: center !important;
}
.searchIcon
{
position: absolute;
margin-top: 17px;
left: 7px;
}
#homeBanner {
width: 100%;
background-image: url(../images/home-banner.jpg);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
padding: 60px 0 40px 0;
}
.table-responsive
{
overflow-x: scroll !important;
}
.colBorder
{
border: 0px !important;
}
.borderHolder
{
border-right: 0px;
}
.navbar-light .navbar-nav .nav-link
{
padding: 5px 0px 16px 0px !important;
color: black !important;
}
.font16 {
font-size: 14px !important;
text-align: center !important;
}
.table td, .table th
{
padding: 10px !important;
}
.tableBorder
{
border-right: 1px solid #fd8577 !important;
border-top: 0px !important;
font-size: 14px !important;
color: white;
font-weight: normal !important;
}
.summaryTD
{
color: #444444 !important;
text-align: center;
font-size: 14px;
font-weight: normal !important;
}
.summaryPadding
{
padding: 0 !important;
}
.summaryAfterBox
{
border: 1px solid #d4d4d4;
width: 100%;
padding: 15px 10px;
margin: 20px 0 0 0;
min-height: unset;
text-align: center;
}
.hostsButton
{
font-size: 15px !important;
color: white !important;
padding: 10px 40px !important;
border-radius: 50px !important;
border: 0px !important;
cursor: pointer;
width: 100%;
margin: 10px 0;
}
.detectedHeading
h4
{
font-size: 20px !important;
color: #353535 !important;
text-align: center !important;
font-weight: normal !important;
padding: 6px 0 0 0;
font-weight: 600 !important;
}
.optimizeWidth
{
width: 100%;
}
.optimizeBackground
{
padding: 30px 0 30px 0;
text-align: center !important;
}
.cacheBox
{
width: 97%;
padding: 15px 15px 0px 15px;
border: 1px solid #d4d4d4;
margin: 10px 11px 0 6px;
position: relative;
top: 17px;
}
.serverTime
h2
{
font-size: 30px !important;
font-weight: bold !important;
color: #fc6655 !important;
text-align: center !important;
text-shadow: unset !important;
padding: 0 !important;
}
.serverTime
h4
{
font-size: 20px !important;
font-weight: bold !important;
color: #1d1d1d !important;
text-align: center !important;
text-shadow: unset !important;
padding: 0 !important;
}
.blurHostPL
{
padding: 0px !important;
}
.blurHostPR
{
padding: 0px !important;
}
.hostHeading
h5
{
font-size: 26px !important;
color: #fff !important;
text-align: center !important;
display: inherit;
font-weight: bold !important;
padding: 0 !important;
margin: 0 !important;
line-height: 0;
position: relative;
bottom: 162px;
}
.cacheSidebarInfo
{
width: 104.3%;
padding: 13px 20px;
position: relative;
text-align: left;
left: -10px;
}
.boxTopLeftOther
{
position: absolute;
top: 15px;
left: 0px;
}
.boxTopRight
{
position: absolute;
bottom: 0px;
right: 0px;
}
.top
{
left: 15px !important;
}
.top-10
{
left: 15px !important;
}
.rightResponsive
{
right: 15px;
}
.right-5
{
right: 0px !important;
}
.left-5
{
left: 0px !important;
}
.hostingBackground {
width: 100%;
background-image: unset !important;
padding: 40px 0 40px 0;
background-color: white !important;
}
.columnPadding
{
padding: 0 0px 0 0px !important;
}
.left-15
{
left: 15px !important;
}
.top-20
{
top: 20px !important;
}
.optimizeHeading
h2
{
font-size: 60px !important;
font-weight: bold !important;
box-shadow: unset !important;
text-align: center !important;
color: white !important;
text-transform: uppercase !important;
line-height: 88px;
}
}
/*----- Media Query Style End {480px} ----- */
/*----- Media Query Style Start {360px} ----- */
@media only screen and (max-width: 360px)
{
.responsive
{
padding-left: 45px;
}
.sidebarInput
{
height: 49px !important;
padding: 0 0 0 17px !important;
font-size: 14px !important;
border-top-right-radius: 0px !important;
border-bottom-right-radius: 0px !important;
width: 71% !important;
}
.footerTitle
h2
{
font-size: 22px !important;
color: white !important;
text-shadow: unset !important;
border-bottom: 1px solid #353654;
padding: 20px 0 20px 0 !important;
}
.font68
{
font-size: 40px !important;
text-align: center !important;
}
.searchIcon
{
position: absolute;
margin-top: 17px;
left: 7px;
}
#homeBanner {
width: 100%;
background-image: url(../images/home-banner.jpg);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
padding: 60px 0 40px 0;
}
.table-responsive
{
overflow-x: scroll !important;
}
.colBorder
{
border: 0px !important;
}
.borderHolder
{
border-right: 0px;
}
.navbar-light .navbar-nav .nav-link
{
padding: 5px 0px 16px 0px !important;
color: black !important;
}
.font16 {
font-size: 14px !important;
text-align: center !important;
}
.table td, .table th
{
padding: 10px !important;
}
.tableBorder
{
border-right: 1px solid #fd8577 !important;
border-top: 0px !important;
font-size: 14px !important;
color: white;
font-weight: normal !important;
}
.summaryTD
{
color: #444444 !important;
text-align: center;
font-size: 14px;
font-weight: normal !important;
}
.summaryPadding
{
padding: 0 !important;
}
.summaryAfterBox
{
border: 1px solid #d4d4d4;
width: 100%;
padding: 15px 10px;
margin: 20px 0 0 0;
min-height: unset;
text-align: center;
}
.hostsButton
{
font-size: 15px !important;
color: white !important;
padding: 10px 40px !important;
border-radius: 50px !important;
border: 0px !important;
cursor: pointer;
width: 100%;
margin: 10px 0;
}
.detectedHeading
h4
{
font-size: 20px !important;
color: #353535 !important;
text-align: center !important;
font-weight: normal !important;
padding: 6px 0 0 0;
font-weight: 600 !important;
}
.optimizeWidth
{
width: 100%;
}
.optimizeBackground
{
padding: 30px 0 30px 0;
text-align: center !important;
}
.cacheBox
{
width: 96%;
padding: 15px 15px 0px 15px;
border: 1px solid #d4d4d4;
margin: 10px 11px 0 6px;
position: relative;
top: 17px;
}
.serverTime
h2
{
font-size: 30px !important;
font-weight: bold !important;
color: #fc6655 !important;
text-align: center !important;
text-shadow: unset !important;
padding: 0 !important;
}
.serverTime
h4
{
font-size: 20px !important;
font-weight: bold !important;
color: #1d1d1d !important;
text-align: center !important;
text-shadow: unset !important;
padding: 0 !important;
}
.blurHostPL
{
padding: 0px !important;
}
.blurHostPR
{
padding: 0px !important;
}
.hostHeading
h5
{
font-size: 26px !important;
color: #fff !important;
text-align: center !important;
display: inherit;
font-weight: bold !important;
padding: 0 !important;
margin: 0 !important;
line-height: 0;
position: relative;
bottom: 118px;
}
.cacheSidebarInfo
{
width: 105.8%;
padding: 13px 20px;
position: relative;
text-align: left;
left: -10px;
}
.boxTopLeftOther
{
position: absolute;
top: 15px;
left: 0px;
}
.boxTopRight
{
position: absolute;
bottom: 0px;
right: 0px;
}
.top
{
left: 15px !important;
}
.cacheSidebarHeading
h4
{
font-size: 25px !important;
color: white !important;
text-align: center;
font-weight: bold !important;
padding: 0px !important;
margin: 0px !important;
position: relative;
bottom: 11px;
}
.top-10
{
left: 15px !important;
}
.rightResponsive
{
right: 15px;
}
.right-5
{
right: 0px !important;
}
.left-5
{
left: 0px !important;
}
.hostingBackground {
width: 100%;
background-image: unset !important;
padding: 40px 0 40px 0;
background-color: white !important;
}
.homeSpeedButton
{
padding: 15px 60px !important;
color: white !important;
border: 0px !important;
border-radius: 50px !important;
margin-top: 15px;
}
.columnPadding
{
padding: 0 0px 0 0px !important;
}
.left-15
{
left: 15px !important;
}
.top-20
{
top: 20px !important;
}
.optimizeHeading
h2
{
font-size: 60px !important;
font-weight: bold !important;
box-shadow: unset !important;
text-align: center !important;
color: white !important;
text-transform: uppercase !important;
line-height: 88px;
}
}
/*----- Media Query Style End {360px} ----- */
/*----- Media Query Style Start {320px} ----- */
@media only screen and (max-width: 320px)
{
.responsive
{
padding-left: 45px;
}
.sidebarInput
{
height: 49px !important;
padding: 0 0 0 17px !important;
font-size: 14px !important;
border-top-right-radius: 0px !important;
border-bottom-right-radius: 0px !important;
width: 67% !important;
}
.footerTitle
h2
{
font-size: 22px !important;
color: white !important;
text-shadow: unset !important;
border-bottom: 1px solid #353654;
padding: 20px 0 20px 0 !important;
}
.font68
{
font-size: 40px !important;
text-align: center !important;
}
.searchIcon
{
position: absolute;
margin-top: 17px;
left: 7px;
}
#homeBanner {
width: 100%;
background-image: url(../images/home-banner.jpg);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
padding: 60px 0 40px 0;
}
.table-responsive
{
overflow-x: scroll !important;
}
.colBorder
{
border: 0px !important;
}
.borderHolder
{
border-right: 0px;
}
.navbar-light .navbar-nav .nav-link
{
padding: 5px 0px 16px 0px !important;
color: black !important;
}
.font16 {
font-size: 14px !important;
text-align: center !important;
}
.r-margin
{
margin-right: 15px;
}
.table td, .table th
{
padding: 10px !important;
}
.tableBorder
{
border-right: 1px solid #fd8577 !important;
border-top: 0px !important;
font-size: 14px !important;
color: white;
font-weight: normal !important;
}
.summaryTD
{
color: #444444 !important;
text-align: center;
font-size: 14px;
font-weight: normal !important;
}
.summaryPadding
{
padding: 0 !important;
}
.summaryAfterBox
{
border: 1px solid #d4d4d4;
width: 100%;
padding: 15px 10px;
margin: 20px 0 0 0;
min-height: unset;
text-align: center;
}
.hostsButton
{
font-size: 15px !important;
color: white !important;
padding: 10px 40px !important;
border-radius: 50px !important;
border: 0px !important;
cursor: pointer;
width: 100%;
margin: 10px 0;
}
.detectedHeading
h4
{
font-size: 20px !important;
color: #353535 !important;
text-align: center !important;
font-weight: normal !important;
padding: 6px 0 0 0;
font-weight: 600 !important;
}
.optimizeWidth
{
width: 100%;
}
.optimizeBackground
{
padding: 30px 0 30px 0;
text-align: center !important;
}
.cacheBox
{
width: 96%;
padding: 15px 15px 0px 15px;
border: 1px solid #d4d4d4;
margin: 10px 11px 0 6px;
position: relative;
top: 17px;
}
.serverTime
h2
{
font-size: 30px !important;
font-weight: bold !important;
color: #fc6655 !important;
text-align: center !important;
text-shadow: unset !important;
padding: 0 !important;
}
.serverTime
h4
{
font-size: 20px !important;
font-weight: bold !important;
color: #1d1d1d !important;
text-align: center !important;
text-shadow: unset !important;
padding: 0 !important;
}
.blurHostPL
{
padding: 0px !important;
}
.blurHostPR
{
padding: 0px !important;
}
.hostHeading
h5
{
font-size: 26px !important;
color: #fff !important;
text-align: center !important;
display: inherit;
font-weight: bold !important;
padding: 0 !important;
margin: 0 !important;
line-height: 0;
position: relative;
bottom: 103px;
}
.cacheSidebarInfo
{
width: 107%;
padding: 13px 20px;
position: relative;
text-align: left;
left: -10px;
}
.boxTopLeftOther
{
position: absolute;
top: 15px;
left: 0px;
}
.boxTopRight
{
position: absolute;
bottom: 0px;
right: 0px;
}
.top
{
left: 15px !important;
}
.cacheSidebarHeading
h4
{
font-size: 25px !important;
color: white !important;
text-align: center;
font-weight: bold !important;
padding: 0px !important;
margin: 0px !important;
position: relative;
bottom: 11px;
}
.cacheSidebar {
width: 100%;
background-image: url(../images/cache-sidebar-image.png);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
padding: 14px 10px;
margin: 15px 0 0 0;
}
.top-10
{
left: 15px !important;
}
.rightResponsive
{
right: 15px;
}
.right-5
{
right: 0px !important;
}
.left-5
{
left: 0px !important;
}
.hostingBackground {
width: 100%;
background-image: unset !important;
padding: 40px 0 40px 0;
background-color: white !important;
}
.homeSpeedButton
{
padding: 15px 60px !important;
color: white !important;
border: 0px !important;
border-radius: 50px !important;
margin-top: 15px;
}
.columnPadding
{
padding: 0 0px 0 0px !important;
}
.left-15
{
left: 15px !important;
}
.top-20
{
top: 20px !important;
}
.optimizeHeading
h2
{
font-size: 60px !important;
font-weight: bold !important;
box-shadow: unset !important;
text-align: center !important;
color: white !important;
text-transform: uppercase !important;
line-height: 88px;
}
}
/*----- Media Query Style End {320px} ----- */
......@@ -6,16 +6,16 @@
<div class="row">
<div class="col-sm-4">
<div class="footerTitle">
<h2>About Company</h2>
<h2><?php echo get_theme_mod( "vq-about-us-title-text"); ?></h2>
</div>
<img class="mt-3" src="images/footer-logo.jpg">
<?php the_custom_logo(); ?>
<div class="footerTitle">
<p>Web Hosting Reviews – the most reliable review website, that provides real information about web hosting companies, their features, prices, pros & cons, and advice. Dedicated to serve web developers, small and big businesses, or those simply in need for a blog, we are trusted by thousands of webmasters. </p>
<p> <?php echo get_theme_mod( "vq-about-company-text"); ?> </p>
</div>
</div>
<div class="col-sm-4">
<div class="footerTitle">
<h2>Navigation</h2>
<h2><?php echo wp_get_nav_menu_name('primary') ?></h2>
</div>
<ul class="nav flex-column">
<?php
......@@ -33,24 +33,20 @@
</div>
<div class="col-sm-4">
<div class="footerTitle">
<h2>Blog</h2>
<h2><?php echo wp_get_nav_menu_name('secondary') ?></h2>
</div>
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link active" href="#">Web Hosting</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">VPS Hosting</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Website Builder</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Dedicated Servers</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Domain Names</a>
</li>
<?php
$menuLocations = get_nav_menu_locations();
$menuID = $menuLocations['secondary'];
$nav = wp_get_nav_menu_items($menuID);
foreach ($nav as $items) { ?>
<li class="nav-item">
<a class="nav-link active" href="<?php echo $items->url; ?>"><?php echo $items->title; ?></a>
</li>
<?php } ?>
</ul>
</div>
</div>
......@@ -61,7 +57,7 @@
<div class="row">
<div class="col-sm-12">
<div class="copyrightTitle">
<p>© 2019 <span>Hosting 1,</span> All Rights Reserved. www.hosting1.com</p>
<?php echo get_theme_mod( "vq-copyright-text"); ?>
</div>
</div>
</div>
......
<?php
function vq_enqueue_theme_resources()
{
$templateUri = get_template_directory_uri();
$assetsFolder = "$templateUri/assets";
wp_enqueue_style('vq_customStyle', "$assetsFolder/css/custom.css", array(), '1.0.0', 'all');
}
function vq_register_theme_supports()
{
add_theme_support('menus');
add_theme_support('custom-background');
add_theme_support('post-thumbnails');
add_theme_support('custom-logo');
register_nav_menu('primary', 'Primary Menu');
register_nav_menu('secondary', 'Secondary Menu');
}
// Register Settings sin the Customizer API
function vq_theme_customize_register( $wp_customize ) {
$wp_customize->add_section('vq_footer_section', array(
'title' => __('Footer Settings'),
'priority' => 30
));
$wp_customize->add_setting('vq-copyright-text', array());
$wp_customize->add_setting('vq-about-company-text', array());
$wp_customize->add_setting('vq-about-us-title-text', array());
$wp_customize->add_control(new WP_Customize_Control(
$wp_customize,
'vq_about_us_title_text',
array(
'label' => __('About Us Title'),
'section' => 'vq_footer_section',
'settings' => 'vq-about-us-title-text',
'priority' => 1
)
)
);
$wp_customize->add_control(new WP_Customize_Control(
$wp_customize,
'vq_about_company_text',
array(
'type' => 'textarea',
'label' => __('About'),
'section' => 'vq_footer_section',
'settings' => 'vq-about-company-text',
'priority' => 2
)
)
);
$wp_customize->add_control(new WP_Customize_Control(
$wp_customize,
'vq_copyright_text',
array(
'type' => 'textarea',
'label' => __('Copyright'),
'section' => 'vq_footer_section',
'settings' => 'vq-copyright-text',
'priority' => 3
)
)
);
// ..repeat ->add_setting() and ->add_control() for mytheme_company-division
}
add_action( 'customize_register', 'vq_theme_customize_register' );
//
//function subscribe_hosting_shortcode() {
// ob_start();
// get_template_part('hosting');
// return ob_get_clean();
//}
//add_shortcode('subscribe-to-hosting', 'subscribe_hosting_shortcode');
//
//add_action('init', 'do_output_buffer');
//function do_output_buffer() {
// ob_start();
//}
//
//
//
//
//$paged = ($_GET['paged'])? $_GET['paged'] : 1;
//$args = array('post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 14, 'paged' => $paged);
//query_posts($args);
//
//function my_post_queries( $query ) {
// // do not alter the query on wp-admin pages and only alter it if it's the main query
// if (!is_admin() && $query->is_main_query()){
//
// // alter the query for the home and category pages
//
// if(is_home()){
// $query->set('posts_per_page', 14);
// }
//
// if(is_category()){
// $query->set('posts_per_page', 3);
// }
//
// }
//}
//add_action( 'pre_get_posts', 'my_post_queries' );
// Include Admin
$templateDirectory = get_template_directory();
require_once("$templateDirectory/admin/functions.php");
// Actions
add_action('wp_enqueue_scripts', 'vq_enqueue_theme_resources');
add_action('init', 'vq_register_theme_supports');
add_action('init', 'vq_add_theme_default_pages');
......@@ -6,10 +6,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>::: Hosting Review :::</title>
<title><?php echo get_bloginfo() ?></title>
<!-- Custom Css Link Start-->
<link rel="stylesheet" type="text/css" href="css/custom.css"/>
<link rel="stylesheet" type="text/css" href="assets/css/custom.css"/>
<!-- Custom Css Link End-->
<!-- Bootstrap Link Start-->
......@@ -18,10 +18,13 @@
<!-- Bootstrap Link End-->
<!-- Font Link Start-->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css"
integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<!-- Font Link End-->
<!-- Font Family -->
<link href="https://fonts.googleapis.com/css?family=Exo:300,300i,400,500,700,700i,900,900i&display=swap" rel="stylesheet">
<!-- Font Family -->
<?php wp_head(); ?>
</head>
......@@ -31,7 +34,7 @@
<!-- Logo & Navigation Section Code Start-->
<!-------------------->
<nav class="navbar navbar-expand-lg navbar-light navBar">
<img class="navbar-brand" src="images/logo.jpg" alt="">
<?php the_custom_logo(); ?>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
......
<?php
/*
Template Name: Home Page
*/
?>
<?php get_header(); ?>
<!-- Banner Content -->
<?php
$page = get_page_by_title( BANNER_PAGE);
echo $page->post_content;
?>
<!-- About Us Content -->
<?php
$page = get_page_by_title( ABOUT_US_PAGE);
echo $page->post_content;
?>
<!-- Top Recent Reviews -->
<?php
$page = get_page_by_title( RECENT_REVIEWS_PAGE);
echo do_shortcode($page->post_content);
?>
<div class="container">
<div class="hrBorder"></div>
</div>
<!-- Top Blogs Content -->
<?php
$page = get_page_by_title( TOP_BLOG_PAGE);
echo do_shortcode($page->post_content);
?>
<?php
get_footer();
<?php get_header(); ?>
<?php get_footer(); ?>
/*
Theme Name: SpeedTest
Theme Name: Hosting Reviews
Theme URI: https://www.vqode.com
Author: Sundas Riasat
Author: VQode Solutions
Author URI: https://www.vqode.com/
Description: The Official Theme for SpeedTest
Description: The Official Theme for Hosting Reviews
Requires at least: WordPress 4.9.6
Version: 1.3
License: GNU General Public License v2 or later
License URI: LICENSE
*/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment