Fix Email Issues in CyberPanel with SMTP Relay Setup Free Method. First Create a email using your Cyberpanel Under Emai Tab Create Email Second go to the SSL tab and click …
You’ve probably seen many examples of password strength indicators around the web. They let users know the password they’re using is weak and indicate how the strength changes when it’s modified. …
Disable PHP Errors PHP warnings and notices help builders debug troubles with their code. but it seems extremely unprofessional while they may be seen to all of your website visitors. In this article, we are able to show you how to without difficulty flip off PHP mistakes in WordPress. Why Should Turn off PHP Errors in …
PHP warnings and notices helpbuilders debug troubles with their code. but it seemsextremely unprofessional whilethey may beseen to all of yourwebsitevisitors. In this article, we are able toshow you how towithout difficultyflip off PHP mistakes in WordPress.
Why Should Turn off PHP Errors in WordPress?
occasionally the WordPress errors log file will create huge headache for a fewuserssince it creates hugefile in a fewinstances. it’s going toonce in a whilehave an effect on the hosting too when you havemost effectivelessareafor your server. in order toavoid logging of blunders
HI in this article I will be shown how to access the WordPress Uploads folder without and password and how to prevent this access In this case, I will apply my …
HI in this article I will be shown how to access the WordPress Uploads folder without and password and how to prevent this access
In this case, I will apply my own website
if your website has vulnerable it should look like below
Simply type website URL and then /wp-content-uploads
You can see all the files and folders. Now we will deny accessing this folder using .htaccess
First, you have to go to your Cpanel and find the .htaccess file and paste the below code
Options -Indexes
After saving the .htaccess file you should set read permission only for your htaccess file.
Whenever you modify your .htaccess file, you should always check that your website still works after uploading it. And if you don’t have Cpanel access you should backup first. Using WP File manager plugin you can get all the files.
Hi, In the Previous article we had seen how to create a Single post dynamic and Custom post. Today we will see how to create dynamic contact page and form. So, …
Hi, In the Previous article we had seen how to create a Single post dynamic and Custom post. Today we will see how to create dynamic contact page and form.
So, Lets Start
Open page.php Page and paste your static Contact page content and we have to include header and footer also.
Now we will see how to dynamic our Contact form. First, we have to install contact form7 Plugin we can use another plugin, but here I am using the Contact form7 plugin.
Once Install and Active the plugin, paste below code into your form section
<?php echo do_shortcode('[contact-form-7 id="74" title="Contact form 1"]')?>
Now our Contact form looks like below
Here I am not showing how to design a contact form. I only show how to call the same from the backend.
Now you can see all the inner pages is showing our contact us page content. So we have to separate all the inner pages.
We will separate our about page, So we have to create a template about.php
about.php
<?php
/**
* Template Name: About
*/
get_header()
?>
<article>
<header class="section background-primary text-center">
<h1 class="text-white margin-bottom-0 text-size-50 text-thin text-line-height-1">Sample Page</h1>
</header>
<div class="section background-white">
<div class="line">
<h2 class="text-size-30">Investigationes demonstraverunt lectores</h2>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros
et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
</p>
<blockquote class="margin-top-bottom-20">
Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima.
</blockquote>
<p class="margin-bottom-30">
Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam;
est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius.
Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc
putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc
nobis videntur parum clari, fiant sollemnes in futurum.
</p>
<div class="line">
<div class="margin">
<div class="s-12 m-12 l-6 margin-m-bottom-30">
<h2>Mirum est notare quam littera gothica</h2>
<p>
Typi non habent claritatem insitam est usus legentis in iis qui facit eorum claritatem.
Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius.
Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum.
</p>
</div>
<div class="s-12 m-12 l-6">
<h2>Claritas est etiam processus dynamicus</h2>
<p>
Typi non habent claritatem insitam est usus legentis in iis qui facit eorum claritatem.
Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius.
Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum.
</p>
</div>
</div>
</div>
</div>
</div>
</article>
<?php get_footer() ?>
<?php
/**
* Template Name: About
*/
get_header()
?>
html content
<?php get_footer() ?>
Note: We must define a template name and it should be matched with your file name.
Once the code is ready you should open your Dashboard and under the pages, section find the About page and select template like below
Hi, in the previous article we had seen slider section and blog post dynamic. Now in this article we will learn single post dynamic and many more.. So lets Start Open …
<?php the_post_thumbnail(‘single-img’) ?> single-img already define in functions.php file
If you notice in home page we use <?php the_excerpt() ?> function for getting the blog content but in single blog we have to use <?php the_content() ?> function
For Dynamic sidebar we have to use WordPress default function <?php dynamic_sidebar(‘sidebar-2’) ?> and sidebar-2 is our widget id
Now go to your Dashboard and drag and drop search field into the widget like below
Now go to your single.php file and paste the below code
<?php get_sidebar() ?> because if we didn't call from single.php file sidebar can't understand which file required sidebar
Our Single Page Working successfully.
Now we will learn how to create custom post, there have two method one is using php code another is using wp-hasty.com.
In this article we will use wp-hast.com site for custom post
Lets Start go to the mentioned site
Now create a folder named inc under the theme folder in my case my theme folder name is bornfeel . Once create a folder inc create a file named protfolio.php and paste the below code
<?php wp_reset_query()?> this code is required for avoiding conflict the post because we will fetch post and protfolio data on the same home page. if you know when we use flot in css we need to clear div same as here.
Congratulations our custom protfolio data is showing on home page.
Thanks for reading…. Next part will be published as soon as possible.
Hi in the last article we had seen how to dynamic logo and widget. Now in this article we will start slider section and other step by step So, First we …
Hi in the previous article I was describe WordPress file structure and how to link your css and js file. Now we are going to start with functions.php file For Dynamic …
Hi in the previous article I was describe WordPress file structure and how to link your css and js file. Now we are going to start with functions.php file
For Dynamic menu we have to write this code in to the functions.php
bornfeel_theme_setup is a function name with theme name.it is best practice that you should always use your theme name for avoiding conflict to other function.
register_nav_menus is a WordPress default function to register the Navbar. For more information you can go through the WordPress Official Website.
add_theme_support for using Custom logo similarly add_image_size and his class home-featured and size
Now we need to create a function for style enqueue like below
functions.php
function bornfeel_scripts(){
wp_enqueue_style( 'style', get_stylesheet_uri() );
}
add_action('wp_enqueue_scripts','bornfeel_scripts');
PART 1 First We have to install WordPress. I think You know how to install WordPress . Here I am working on Live Server and we will use Filezila Client For …
First We have to install WordPress. I think You know how to install WordPress . Here I am working on Live Server and we will use Filezila Client
For Hosting I am using webcore.in Hosting services
You can also work on localhost but here I am working on Live Server. If you want to by hosting you can by from webcore.in they are providing Lightspeed Webserver and price is reasonable
Once installed WordPress its look like below
Now open FileZilla and connect your server like below
Go to the /public_html/project/wp-content/themes folder and create a new folder bornfeel.
Note: bornfeel is our theme folder name you can give any name what ever you want.
For HTML to WordPress theme we have to create some files under the newly created theme folder
style.css
header.php
footer.php
functions.php
index.php
front-page.php
single.php
sidebar.php
search.php
archive.php
page.php
Firs we have to understand what is style.css in WordPress and why it is required?
WordPress reads the comments that you place in the style.css file. This is where you specify specific information about the theme you are building. It control the visual design and layout of your website pages.
For more information you can go through the WordPress official link
style.css
/*
Theme Name: bornfeel
Theme URI: https://techblog369.in
Author: techblog369
Author URI: https://techblog369.in
Description: This is a Full Customized theme
Version: 1.0
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bornfeel
*/
Once complete the style.css file you can see the theme template under the Appearance->themes like below
Now you can see we have no image template so before active the theme we will create theme image
Note: File name should be screenshot.png and file size should be 1200X900
Once created the screenshot.png file we have to upload the same under the theme folder which is bornfeel theme folder.
Now Active the theme and your website will be blank. First we have to copy our css file and paste into wordpress css file like below
<?php wp_head(); ?> will help to print style sheet and other for the website similarly we have to call WordPress default function <?php wp_footer(); ?> footer section.
//Landing Page Code
front-page.php
<?php
/*
Template Name: Home
*/
get_header();
?>
<!-- MAIN -->
<main role="main">
<!-- Main Carousel -->
<section class="section background-dark">
<div class="line">
<div class="carousel-fade-transition owl-carousel carousel-main carousel-nav-white carousel-wide-arrows">
<div class="item">
<div class="s-12 center">
<img src="img/01-boxed.jpg" alt="">
<div class="carousel-content">
<div class="padding-2x">
<div class="s-12 m-12 l-8">
<p class="text-white text-s-size-20 text-m-size-40 text-l-size-60 margin-bottom-40 text-thin text-line-height-1">Prospera is the New Amazing HTML5 Template</p>
<p class="text-white text-size-16 margin-bottom-40">Duis autem vel eum iriure dolor in hendrerit in vulputate velit<br> esse molestie consequat, vel illum dolore eu feugiat nulla facilisis</p>
</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="s-12 center">
<img src="img/02-boxed.jpg" alt="">
<div class="carousel-content">
<div class="padding-2x">
<div class="s-12 m-12 l-8">
<p class="text-white text-s-size-20 text-m-size-40 text-l-size-60 margin-bottom-40 text-thin text-line-height-1">With Fully Responsive Components</p>
<p class="text-white text-size-16 margin-bottom-30">Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Section 1 -->
<section class="section background-white">
<div class="line">
<div class="margin">
<div class="s-12 m-12 l-4 margin-m-bottom">
<img class="margin-bottom" src="img/img-01.jpg" alt="">
<h2 class="text-thin">Clean Design</h2>
<p>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.</p>
<a class="text-more-info text-primary-hover" href="/">Read more</a>
</div>
<div class="s-12 m-12 l-4 margin-m-bottom">
<img class="margin-bottom" src="img/img-02.jpg" alt="">
<h2 class="text-thin">Valid code</h2>
<p>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.</p>
<a class="text-more-info text-primary-hover" href="/">Read more</a>
</div>
<div class="s-12 m-12 l-4 margin-m-bottom">
<img class="margin-bottom" src="img/img-03.jpg" alt="">
<h2 class="text-thin">Totally free</h2>
<p>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.</p>
<a class="text-more-info text-primary-hover" href="/">Read more</a>
</div>
</div>
</div>
</section>
<!-- Section 2 -->
<section class="section background-primary text-center">
<div class="line">
<div class="s-12 m-10 l-8 center">
<h2 class="headline text-thin text-s-size-30">We are Web Design Heroes</h2>
<p class="text-size-20">Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis</p>
</div>
</div>
</section>
<!-- Section 3 -->
<section class="section background-white">
<div class="full-width text-center">
<img class="center margin-bottom-30" style="margin-top: -210px;" src="img/bio.png" alt="">
<div class="line">
<h2 class="headline text-thin text-s-size-30">Fully <span class="text-primary">Responsive</span> HTML5 Template</h2>
<p class="text-size-20 text-s-size-16 text-thin">Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis</p>
<i class="icon-more_node_links icon2x text-primary margin-top-bottom-10"></i>
<p class="text-size-20 text-s-size-16 text-thin text-primary">Try resize your browser window</p>
</div>
</div>
</section>
<hr class="break margin-top-bottom-0">
<!-- Section 4 -->
<section class="section background-white">
<div class="line">
<h2 class="text-thin headline text-center text-s-size-30 margin-bottom-50">From Our <span class="text-primary">Blog</span></h2>
<div class="carousel-default owl-carousel carousel-wide-arrows">
<div class="item">
<div class="margin">
<div class="s-12 m-12 l-6">
<div class="image-border-radius margin-m-bottom">
<div class="margin">
<div class="s-12 m-12 l-4 margin-m-bottom">
<a class="image-hover-zoom" href="/"><img src="img/blog-05.jpg" alt=""></a>
</div>
<div class="s-12 m-12 l-8 margin-m-bottom">
<h3><a class="text-dark text-primary-hover" href="/">Lorem Ipsum Dolor sit Amet</a></h3>
<p>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.</p>
<a class="text-more-info text-primary-hover" href="/">Read more</a>
</div>
</div>
</div>
</div>
<div class="s-12 m-12 l-6">
<div class="image-border-radius">
<div class="margin">
<div class="s-12 m-12 l-4 margin-m-bottom">
<a class="image-hover-zoom" href="/"><img src="img/blog-03.jpg" alt=""></a>
</div>
<div class="s-12 m-12 l-8">
<h3><a class="text-dark text-primary-hover" href="/">Lorem Ipsum Dolor sit Amet</a></h3>
<p>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.</p>
<a class="text-more-info text-primary-hover" href="/">Read more</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="margin">
<div class="s-12 m-12 l-6">
<div class="image-border-radius margin-m-bottom">
<div class="margin">
<div class="s-12 m-12 l-4 margin-m-bottom">
<a class="image-hover-zoom" href="/"><img src="img/blog-04.jpg" alt=""></a>
</div>
<div class="s-12 m-12 l-8 margin-m-bottom">
<h3><a class="text-dark text-primary-hover" href="/">Lorem Ipsum Dolor sit Amet</a></h3>
<p>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.</p>
<a class="text-more-info text-primary-hover" href="/">Read more</a>
</div>
</div>
</div>
</div>
<div class="s-12 m-12 l-6">
<div class="image-border-radius">
<div class="margin">
<div class="s-12 m-12 l-4 margin-m-bottom">
<a class="image-hover-zoom" href="/"><img src="img/blog-02.jpg" alt=""></a>
</div>
<div class="s-12 m-12 l-8">
<h3><a class="text-dark text-primary-hover" href="/">Lorem Ipsum Dolor sit Amet</a></h3>
<p>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.</p>
<a class="text-more-info text-primary-hover" href="/">Read more</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="margin">
<div class="s-12 m-12 l-6">
<div class="image-border-radius margin-m-bottom">
<div class="margin">
<div class="s-12 m-12 l-4 margin-m-bottom">
<a class="image-hover-zoom" href="/"><img src="img/blog-01.jpg" alt=""></a>
</div>
<div class="s-12 m-12 l-8 margin-m-bottom">
<h3><a class="text-dark text-primary-hover" href="/">Lorem Ipsum Dolor sit Amet</a></h3>
<p>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.</p>
<a class="text-more-info text-primary-hover" href="/">Read more</a>
</div>
</div>
</div>
</div>
<div class="s-12 m-12 l-6">
<div class="image-border-radius">
<div class="margin">
<div class="s-12 m-12 l-4 margin-m-bottom">
<a class="image-hover-zoom" href="/"><img src="img/blog-06.jpg" alt=""></a>
</div>
<div class="s-12 m-12 l-8">
<h3><a class="text-dark text-primary-hover" href="/">Lorem Ipsum Dolor sit Amet</a></h3>
<p>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.</p>
<a class="text-more-info text-primary-hover" href="/">Read more</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<? get_footer(); ?>
We need to add get_header and get_footer code for getting the header and footer part for more information you can go through the WordPress official website.
Now one by one upload css js and other external file into the theme folder and link it like below
While WordPress itself is a secure platform, this doesn’t make your site immune to break-ins. One of the most common attacks is human or bot hackers trying to force their way …
While WordPress itself is a secure platform, this doesn’t make your site immune to break-ins. One of the most common attacks is human or bot hackers trying to force their way through your login page by trying various username and password combinations until something works. To keep them from succeeding, you can use a WordPress limit login attempts plugin.
By default, people can continuously try to log into your site, with no restrictions on attempts. However, most legitimate users won’t need more than a few tries (at most). Therefore, you can limit the number of login attempts made from a specific IP address in a set amount of time. Any user who goes over the limit can be temporarily or permanently locked out.
In this post, we’re going to show you how to set the feature up using a free WordPress limit login attempts plugin. Then, we’ll share some of the pros and cons of this approach. Let’s get to work!
Step 1: Install the WordPress limit login attempts plugin
For most users, a WordPress limit login attempts plugin is the best option to restrict login attempts. There are several quality options, but we recommend the free Limit Login Attempts Reloaded plugin because it’s:
100% free.
Popular – active on over 1 million sites, according to WordPress.org.
Well-rated – a 4.8-star rating (out of 5).
Easy to use.
While the plugin is easy to use at a basic level (it starts working as soon as you activateit), it also boasts a variety of configuration options, including some handy extras (such as the ability to whitelist or blacklist both IPs and usernames).
To get started, install and activate the Limit Login Attempts Reloaded plugin at your WordPress site. If you’re not sure how to install a WordPress plugin.
Step 2: Customize the plugin’s settings
As soon as you activate the plugin, it starts working right away. By default, users get four guesses before the plugin locks them out:
However, the plugin also provides a settings area where you can modify how this functionality works.
To access this area, go to Settings > Limit Login Attempts:
In the Statistics section, you can find details about how many ‘lockouts’ have occurred due to the plugin. This will be empty right now, but you can check back later to see how many potential brute force attempts the plugin has halted.
Then, under Options, you can customize how the lockout system works. This includes deciding how many guesses the plugin will allow, the length of time users will be locked out for, and more. You can even enable a GDPR-compliance setting, which will obfuscate all recorded IPs for privacy reasons.
Scrolling down a bit, you’ll also find sections labeled Whitelist and Blacklist:
Here, you can enter specific IPs and/or usernames. If you add a user to the whitelist, they’ll be able to log into your site as many times as they’d like, and won’t have to worry about getting locked out.
Adding someone to the blacklist, on the other hand, will permanently lock them out. The latter option is handy if you see a lot of suspicious activity coming from one or more specific IP addresses.
Don’t forget to save your changes to this page when you’re done configuring the settings. That’s all you need to do to limit login attempts in WordPress!
What is XML-RPC? XML-RPC is an API that warps the information or data into an XML file and sends it to the mobile app or remote software. This was introduced as …
XML-RPC is an API that warps the information or data into an XML file and sends it to the mobile app or remote software. This was introduced as in the olden days, internet speed is not fast, instead of writing it online. Users write their content offline and publish it all together using the API. As the internet services improved, most of us does not use the feature anymore, often it was forgotten by us.
XML-RPC is a remote procedure call protocol that allows anyone to interact with your WordPress website remotely. In other words, it’s a way to manage your site without having to log in manually via the standard “wp-login.php” page. It’s widely used by plugins, most famously by Automattic’s own Jetpack plugin. These days, however, the word “XML-RPC” has gotten a bad name. In this tutorial, we will explain what is WordPress XML-RPC and how to stop an XML-RPC attack on your WordPress website.
Is XML-RPC Enabled on Your WordPress Website?
A quick way to check if your site is vulnerable is to visit the following URL from a browser:
yoursite.com/xmlrpc.php
If it’s enabled, you should get a response that says “XML-RPC server accepts POST requests only.” Like this:
The Dangers and Benefits of XML-RPC
There’s been a lot of back and forth in the WordPress security community about XML-RPC. There are mostly two concerns:
XML-RPC can be used to DDoS a site
It can be used to repeatedly try username/password combinations
At least, these were possible. WordPress has since plugged loopholes that allowed people to try hundreds of usernames and passwords at once. Since version 4.4, it’s been quite improved. Now WordPress will silently fail all subsequent login attempts as soon as a single XML-RPC call has failed. Great!
However, there are those who are still concerned about the ease by while remote procedure calls like this can be made. So here are a few ways to secure your site against XML-RPC – starting from the lightest touch to the heaviest.
Method 1: Disable Pingbacks
This is a process that uses your server as an unwitting participant in an attack against another server. Basically, someone tells your site “Hey, this URL linked to your blog!” And then your site responds with a “pingback” to that URL. Except that there’s no verification that the URL actually did link back to you. Do this with hundreds of vulnerable WordPress sites, and you have a DDoS attack on your hands! The easiest way to prevent your site from being used in this manner is to add the following code to your theme’s functions.php:
Method 2: Prevent All Authentication Requests via XML-RPC
This second method determines whether you want to allow XML-RPC methods that authenticate users. Take for example, publishing a blog via e-mail. The site will receive your e-mail, authenticate you via XML-RPC, and then publish it if the credentials match.
A lot of people are uncomfortable with the ability of XML-RPC to just take in random calls like this. It’s what led to hundreds or thousands of authentication attempts in the first place. Even though WordPress has since addressed this particular form of hacking, there are those who recommend simply turning it off.
To do that, enter this code in functions.php:
add_filter('xmlrpc_enabled','__return_false');
It’s important to note that this is not the same as the first method. This code only disables authentication methods and leaves all others untouched – like pingbacks for example.
Method 3: Disable Access to xmlrpc.php
This is the most extreme method that completely disables all XML-RPC functionality. It requires you to edit the .htaccess file at the root of your WordPress directory. Add the following code to the top:
<files xmlrpc.php>
Order allow,deny
Deny from all
</files>
Note: If you find your WordPress installation doesn’t have a .htaccess file at its root folder, simply create one with the following default code.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Now with the above denial rules in effect, trying to access xmlrpc.php will be met with the following page:
Hi, In this article I am going to share how to install and configure Newsletter in WordPress Free. Let’s Start First You have to install Newsletter Plagin Version 7.3.3 | By Stefano …