Author Archives: admin

Create a Custom Forgot Password Page In WordPress

reset-password-personal

Here we will explain to you how to create a custom forgot password/reset password page in WordPress. this tutorial will help for making the custom front end page where your subscriber and author and many roles users will change there password to system.

Step 1)

Make One template page in WordPress active theme folder and put the below code there.

<?php
/*  Template Name: Forgot Password Template */
get_header();
global $wpdb;
if( (isset($_REQUEST['update_confirm'])) AND ($_REQUEST['update_confirm']='update_confirm') ){

	$newpass=md5($_POST['newpass']);
	$usernameemail=$_POST['useremail'];
	$kkey =$_POST['key'];

	$wpdb->query($wpdb->prepare("UPDATE $wpdb->users SET user_pass='".$newpass."',user_activation_key='' WHERE (user_login='".$usernameemail."' OR user_email='".$usernameemail."') AND user_activation_key='".$kkey."' "));

	echo "<span class='msgg-ok'>Your password has been reset.<br> <a href='/user-login/'>Log in</a></span>";

}

if( (isset($_REQUEST['update'])) AND ($_REQUEST['update']=='update')){
	
	$username_email=$_POST['uemail'];
	
	$Qry = $wpdb->get_results("SELECT user_login,user_email FROM $wpdb->users WHERE user_login='".$username_email."' OR user_email='".$username_email."'");
	if($Qry[0]->user_login != '' && $Qry[0]->user_email != ''){
		$email = $Qry[0]->user_email;
		$user = $Qry[0]->user_login;
		$homeurll=home_url('/');

		$autogenerate_key =crypt($username_email);

		$wpdb->query($wpdb->prepare("UPDATE $wpdb->users SET user_pass='".$newpass."',user_activation_key='".$autogenerate_key."' WHERE (user_login='".$username_email."' OR user_email='".$username_email."') "));


		$mailmsg="Someone requested that the password be reset for the following account:\n$homeurll.\n\nUsername: $user\n\nIf this was a mistake, just ignore this email and nothing will happen.\n\nTo reset your password, visit the following address:\n$homeurll/forgot-password/?action=rp&key=$autogenerate_key&login=$user";


		mail($email,'[The Pacifico Partnership] Password Reset',$mailmsg);

		echo "<span class='msgg-ok'>Check your e-mail for the confirmation link.</span>";

	}else{
		echo "<span class='msg-errr'>Username or Email is not found.</span>";
		$notfound="errror";
	}
}

?>

<?php if($_GET['action']=='rp'){ ?>

<style>
#forget_display{display:none;}
</style>
<?php } 

if((!$_POST) OR ($notfound!='')){

?>

<div id='forget_display'>
<form action='' method='post' onsubmit='return blank_field();'>
<div >  <label>Please enter your username or email address.You will receive a link to create a new password via email.</label><br /><br />
<div> <input name='uemail' type='text' id='uemail' onfocus="if(this.value=='Enter Username/E-mail') this.value=";" onblur="if (this.value=='')
this.value='Enter Username/E-mail';" placeholder='Enter Username/E-mail'/></div> <input type='submit' value='Get New Password'/> </div>
<input type='hidden' name='update' value='update' />

</form>
</div>
<?php }?>

<?php if( (isset($_REQUEST['action'])) AND ($_REQUEST['action']=='rp')) {?>
<div>
<form action="<?php echo home_url('/') ?>?page_id=9" method="post" onsubmit="return blank_pfield();">
<div>
<label>Enter new password:</label><div>  <input name="newpass" type="password"  id="newpass"/> </div></div><br />
<div><label>Repeat password:</label><div>  <input name="repeat-pass" type="password"  id="repeat-pass"/> </div></div><br />
<div><label>&nbsp;</label> <input type="submit" value="Change password" /></div>
<input type="hidden" name="update_confirm"  value="update_confirm"/>
<input type="hidden" value="<?php echo $_REQUEST['login'];?>" name="useremail" />
<input type="hidden" name="key" value="<?php echo $_REQUEST['key'];?>" />
</form>
</div>
<?php }?>

<script>

function blank_field()

{

if(document.getElementById('uemail').value=='Enter Username/E-mail')
{
alert("Please enter username or email");
return false;
}
else
{
return true;
}
}

function blank_pfield()

{

if(document.getElementById('newpass').value=='')
{
alert("Please enter new password");
return false;
}

if(document.getElementById('repeat-pass').value=='')
{
alert("Please enter repeat password");
return false;
}

if(document.getElementById('newpass').value!=document.getElementById('repeat-pass').value)
{
alert("Password do not match");
return false;
}

return true;

}
</script>
<?php get_footer(); ?>
<style>
	.choko_register_box{margin: 0 auto;width: 50%;}
	.choko_register_row_ctn{margin-bottom: 15px;}
	.choko_register_row_ctn label{display: block;margin-bottom: 10px;}
	.choko_register_row_ctn input{width: 97%;border-radius: 0}
	.choko_register_row_ctn select{width: 100%;border-radius: 0}
	.choko_register_error_msg{color: red;margin-bottom: 15px;}
</style>

Step 2)

Now make forgot password page in wp-admin/add new page. and select the “Forgot Password Template” as a template page. update your page.

Step 3)

Now visit your page in front end it will display the custom forgot password form where if user exist then sent a email link for reset new password.

Create Custom Register Page In WordPress

how-to-create-wordpress-user-registration-form

Here we will explain to you how to create a custom register page in WordPress. this tutorial will help for making the custom front end page where your subscriber and author and many roles users will register them self.

Step 1)

Make One template page in WordPress active theme folder and put the below code there.

<?php
/*  Template Name: Register Template */
get_header();

function randomPassword() {
    $alphabet = "abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789";
    $pass = array(); //remember to declare $pass as an array
    $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache
    for ($i = 0; $i < 8; $i++) {
        $n = rand(0, $alphaLength);
        $pass[] = $alphabet[$n];
    }
    return implode($pass); //turn the array into a string
}

$error= '';
$success = '';
global $wpdb, $PasswordHash, $current_user, $user_ID;
if(isset($_POST['task']) && $_POST['task'] == 'register' ) {

	$password1 = randomPassword();
	$first_name = $wpdb->escape(trim($_POST['first_name']));
	$last_name = $wpdb->escape(trim($_POST['last_name']));
	$email = $wpdb->escape(trim($_POST['email']));
	$username = $wpdb->escape(trim($_POST['username']));
	
	if( $email == "" || $username == "" || $first_name == "" || $last_name == "") {
		$error= 'Please don\'t leave the required fields.';
	} else if(!filter_var($email, FILTER_VALIDATE_EMAIL)) {
		$error= 'Invalid email address.';
	} else if(email_exists($email) ) {
		$error= 'Email already exist.';
	} else {
		$user_id = wp_insert_user( array ('first_name' => apply_filters('pre_user_first_name', $first_name), 'last_name' => apply_filters('pre_user_last_name', $last_name), 'user_pass' => apply_filters('pre_user_user_pass', $password1), 'user_login' => apply_filters('pre_user_user_login', $username), 'user_email' => apply_filters('pre_user_user_email', $email), 'role' => 'subscriber' ) );

		if( is_wp_error($user_id) ) {
			$error= 'Error on user creation.';
		} else {
			do_action('user_register', $user_id);
			$success = 'You\'re successfully register';

		}
	}
}
?>
<div class="wrapper">
 	<div class="choko_register_box">
		<form method="post" class="choko_register_form">
			<div class="choko_register_row_ctn">
				<label for="first_name">First Name<span>*</span>:</label>
				<input type="text" value="<?php if(isset($first_name)){echo $first_name;} ?>" name="first_name" id="first_name" />
			</div>
			<div class="choko_register_row_ctn">
				<label for="last_name">Last Name<span>*</span>:</label>
				<input type="text" value="<?php if(isset($last_name)){echo $last_name;} ?>" name="last_name" id="last_name" />
			</div>
			<div class="choko_register_row_ctn">
				<label for="username">Username<span>*</span>:</label>
				<input type="text" value="<?php if(isset($username)){echo $username;} ?>" name="username" id="username" />
			</div>	
			<div class="choko_register_row_ctn">
				<label for="email">Email<span>*</span>:</label>
				<input type="text" value="<?php if(isset($email)){echo $email;} ?>" name="email" id="email" />
			</div>
			<div class="choko_register_msg_ctn">
				<?php if($sucess != "") { echo "<div class='choko_register_success_msg'>".$sucess."</div>"; } ?> 
				<?php if($error!= "") { echo "<div class='choko_register_error_msg'>".$error."</div>"; } ?>
			</div>		
			<button type="submit" name="btnregister" class="button" >Register</button>
			<input type="hidden" name="task" value="register" />
		</form>
 	</div>
</div>
<?php get_footer() ?>
<style>
	.choko_register_box{margin: 0 auto;width: 50%;}
	.choko_register_row_ctn{margin-bottom: 15px;}
	.choko_register_row_ctn label{display: block;margin-bottom: 10px;}
	.choko_register_row_ctn input{width: 97%;border-radius: 0}
	.choko_register_error_msg{color: red;margin-bottom: 15px;}
</style>

Step 2)

Now make register page in wp-admin/add new page. and select the “Register Template” as a template page. update your page.

Step 3)

Now visit your page in front end it will display the custom register form.

How to repeat the header on every page in mpdf ?

pdf_mpdf

If you want to add header in your custom mpdf and repeat the header for every page on mpdf then simply put the below code in your code and you can get the dynamic header in your generated pdf.

Step 1)

put the below code to your mpdf.

<htmlpageheader>
             {Header title}
</htmlpageheader>
<sethtmlpageheader name="MyHeader1" value="on" show-this-page="0" />

How to implement captcha in php?

captcha

This is the tutorial that can implement the captcha in the PHP form and verify the user which is a real user or any robot users. so just make the below files and set to your form which can attach the captcha.

Step 1)

Make php file and put the below code there.

<div>
     <img src="captcha_code.php"/>
     <input name="captcha_code" type="text" id="captcha_code" placeholder="Enter Captcha Code">
</div>

Step 2)

Make another file name “captcha_code.php”. put the below code in that file.

<?php
session_start();
$random_alpha = md5(rand());
$captcha_code = substr($random_alpha, 0, 6);
$_SESSION["captcha_code"] = $captcha_code;
$target_layer = imagecreatetruecolor(70,30);
$captcha_background = imagecolorallocate($target_layer, 148, 7, 10);
imagefill($target_layer,0,0,$captcha_background);
$captcha_text_color = imagecolorallocate($target_layer, 255, 255, 255);
imagestring($target_layer, 8, 8, 8, $captcha_code, $captcha_text_color);
header("Content-type: image/jpeg");
imagejpeg($target_layer);
?>

Step 3)

Now visit your form it will display the captcha code in your form.

How to Use .htaccess Rewrite Rules

SEO-Tips-for-Beginners-5-Easy-Wins

If you want to customize your URL and get the best SEO tips for indexing and up your website in searching results in google, Alexa search ranking then simply use below some tips which can get your URL for best SEO purpose. we present some rules for your SEO URL.

Forcing https with SSL

RewriteCond %{HTTPS} !=on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Creating a Vanity URL

RewriteRule ^promo123 /full-path/to-desired/page.html [R=301,L]

Whitelist IP Addresses

Order Deny,Allow
 Deny from all
 Allow from 182.237.14.39
 Allow from 182.237.14.40

Blacklist IP Addresses

Order allow,Deny
 Deny from 182.237.14.39
 Deny from 182.237.14.40
 Allow from all

301 Redirect all Non-primary URLs to Primary URL (https)

RewriteCond %{HTTP_HOST} !^domain\.com [NC]
RewriteRule (.*) https://domain.com/\ [R=301,L]

Redirecting all URLs

Redirect 301 / https://example.com/

Automatically loading a subdirectory

RewriteEngine on
RewriteRule ^$ /subdir1/ [L]

Rewriting non-existing links to index.php

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

404 page redirect

ErrorDocument 404 http://example.com/404.php

DEFLATE

<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
 AddOutputFilterByType DEFLATE application/javascript
 AddOutputFilterByType DEFLATE application/rss+xml
 AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
 AddOutputFilterByType DEFLATE application/x-font
 AddOutputFilterByType DEFLATE application/x-font-opentype
 AddOutputFilterByType DEFLATE application/x-font-otf
 AddOutputFilterByType DEFLATE application/x-font-truetype
 AddOutputFilterByType DEFLATE application/x-font-ttf
 AddOutputFilterByType DEFLATE application/x-javascript
 AddOutputFilterByType DEFLATE application/xhtml+xml
 AddOutputFilterByType DEFLATE application/xml
 AddOutputFilterByType DEFLATE font/opentype
 AddOutputFilterByType DEFLATE font/otf
 AddOutputFilterByType DEFLATE font/ttf
 AddOutputFilterByType DEFLATE image/svg+xml
 AddOutputFilterByType DEFLATE image/x-icon
 AddOutputFilterByType DEFLATE text/css
 AddOutputFilterByType DEFLATE text/html
 AddOutputFilterByType DEFLATE text/javascript
 AddOutputFilterByType DEFLATE text/plain
 AddOutputFilterByType DEFLATE text/xml
</IfModule>

GZIP

<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>

Expires headers

<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default expiration: 1 hour after request
ExpiresDefault "now plus 1 hour"
# CSS and JS expiration: 1 week after request
ExpiresByType text/css "now plus 1 week"
ExpiresByType application/javascript "now plus 1 week"
ExpiresByType application/x-javascript "now plus 1 week"
# Image files expiration: 1 month after request
ExpiresByType image/bmp "now plus 1 month"
ExpiresByType image/gif "now plus 1 month"
ExpiresByType image/jpeg "now plus 1 month"
ExpiresByType image/jp2 "now plus 1 month"
ExpiresByType image/pipeg "now plus 1 month"
ExpiresByType image/png "now plus 1 month"
ExpiresByType image/svg+xml "now plus 1 month"
ExpiresByType image/tiff "now plus 1 month"
ExpiresByType image/vnd.microsoft.icon "now plus 1 month"
ExpiresByType image/x-icon "now plus 1 month"
ExpiresByType image/ico "now plus 1 month"
ExpiresByType image/icon "now plus 1 month"
ExpiresByType text/ico "now plus 1 month"
ExpiresByType application/ico "now plus 1 month"
# Webfonts
ExpiresByType font/truetype "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
</IfModule>

Cache-Control

<ifModule mod_headers.c>
 <filesMatch "\.(ico|jpe?g|png|gif|swf)$">Header set Cache-Control "public"</filesMatch>
 <filesMatch "\.(css)$">Header set Cache-Control "public"</filesMatch>
 <filesMatch "\.(js)$">Header set Cache-Control "private"</filesMatch>
 <filesMatch "\.(x?html?|php)$">Header set Cache-Control "private, must-revalidate</filesMatch>
</ifModule>

Enable Keep Alive

<ifModule mod_headers.c>
Header set Connection keep-alive
</ifModule>

Enable mod_pagespeed

<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedEnableFilters rewrite_css,combine_css
ModPagespeedEnableFilters recompress_images
ModPagespeedEnableFilters convert_png_to_jpeg,convert_jpeg_to_webp
ModPagespeedEnableFilters collapse_whitespace,remove_comments
</IfModule>

Wrapping It Up

ServerSignature Off

Disable Image Hotlinking

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?sample.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]

Best SEO Tips on How to Increase Website Traffic

seo

So, the first question is in our mind that how to generate more traffic to my website so that I can get leads to boost the business? From this article, marketers and business owners will get the whole battery of straight-to-point, actionable tips to increase website traffic or blog. Must apply the following tricks to drive traffic to the website.

Step 1) Make your website secure.

Get an SSL certificate and implement it on your website. and make all URLs in HTTPS instead of HTTP.

Step 2) Get Social

Be Social! Use various social media channels for brand awareness, business promotion or product promotion. Create awesome business pages and post engaging content.

Step 3) Focus on Long-Tail Keywords

Your posts should include all the relevant long tails terms and phrases to your topic. Because there is a good chance to rank on long-tail keywords with fewer efforts. Also, you will get your targeted audience with the help of long-tail keywords.

Step 4) Are you doing forum posting?

Active and relevant forums can help you to get good rankings for your keywords. It’s a well-known link building strategy. Also, if you posting really helpful information on forums, then it will drive traffic to the website.

Step 5) Start a Facebook Group

Start a Facebook group, add members and post quality content and solutions and build trust. If you put great kinds of stuff in a group then it may help to get website traffic.

Step 6) Promote Blog Posts to Your E-mail List

Always collect emails of visitors of your websites via newsletter or any other methods and always mail them when you publish a new post to your site.

Step 7) Write Attractive Headlines

Write attractive headlines while sharing any post on social media to attract people to boost website traffic.

Step 8) Join Blogging Communities

Connect with other bloggers and help each other to get web traffic. ProBlogger and CopyBlogger are great to network with other bloggers.

Step 9) Include links to other relevant posts

Mention other relevant links in your new post. It can be a link to your own website or can be a link to other authoritative websites. It will increase the creditability of your post. Also, there is the possibility that the user will click on the internal linked post too.

Step 10) Guest Post on Relevant Websites

Do guest posts on high DA and famous websites. There are two reasons behind it. First is, you will get backlink and second is, when you publish a post on any famous website, you can get the benefit of their large number of visitors. They will read your post and there are chances that they will visit your website too.

Step 11) Become a Columnist or Contributor on Famous Websites

Being a columnist or contributor on famous websites can help to make your profile more authoritative and also you can build your audience there. If you get success to win their hearts, they will become your regular readers and visit your blog or website too.

Step 12) Become a Columnist or Contributor on Famous Websites

Always keep your old posts updated with the latest information. It will help you to generate traffic from the old post and also helps to gain the trust of readers. If you know about Brian Dean of Backlinko, then the great thing about him is, he always keeps all posts updated. He has very fewer posts on his blog but all are full of information and updated.

Step 13) Remove irrelevant Site links from Google

Google will always consider all links to your website. If you find any links are irrelevant, then remove it with the help of Search Console or add no index robot meta in those irrelevant pages.

Step 14) Keep your Website Banner Updated

Keep your website banner updated with the latest trends of your niche.

Step 15) Post more Frequently

Post news articles and content frequently on your blog. Be consistent! It will help to keep in touch with your readers.

Step 16) Submit Your Posts to Reddit

Reddit is the most famous social bookmarking or news site. Always submit the link of your post there to get traffic to your website

Step 17) Mention Influencers in Your Tweets

When you mention someone in a blog post using@, they will surely read your post and if they like it they will share your post on their network.

Step 18) Invest your Energy on Strategies that are Working

You don’t have to do what everyone else is doing. Always observe analytics and based on that stick to only those strategies which are working for you. No need to waste time and efforts on which that are working for others but not for you.

Step 19) Build Connections with Others in your Niche

Connecting with more people is always helpful to get referral traffic.

Step 20) Add Relevant Keywords on Your Site

Do keyword research and based on that put relevant and high volume keywords to get good rankings and ultimately it will results in good traffic.

Step 21) Always add Links while sharing on Social Media

Add links in your post while you share on social media so that people can reach to your website. You can use shorten links for sharing.

Step 22) Start YouTube Marketing

As per new trends, the video is the advanced way of marketing. Try it.

Step 23) Add Text in Your Blog Featured Images

Include post title and URL in blog post images for optimal effect when pinned or shared.

Step 24) Join Niche Facebook and LinkedIn Groups

Join relevant groups and share useful posts.

Step 25) Connect with Bloggers who are Already Sending Traffic

Contact them who are already promoting your content in a direct or indirect way and try to get more benefits.

Step 26) Ask Famous bloggers to Guest Post on Your Site

Contact famous bloggers and convince them for posting on your site. If they will agree, there will be a double benefit. You will get quality content on your website so that the creditability of your site will be increased and also that bloggers will share that post among their networks. So, you will get a huge amount of traffic to your website.

Step 27) Respond to Blog Comments

It will drive commenters back to your site and reflect your concern towards your readers.

Step 28) Question-Answers

Write Quora and Yahoo answers related to your niche and share the link of your website or blog to get traffic.

Step 29) Write a Response Post

Respond to a controversial post with a response post. These types of posts are really doing well.

Step 30) Contact Influencers

Notify influencers for your newsworthy post.

Step 31) Make Proper use of Categories

Always use relevant categories while posting an article on your website. And also if you are submitting your article anywhere, then also select the proper category.

Step 32) Write Landmark Posts

Create a long, authoritative post that should become an ultimate guide for that topic.

Step 33) Comment on Niche Blogs

Comment on other relevant blogs. You might get traffic from there also.

Step 34) Interview Influencers of Your Niche

Take an interview with influencers, and publish it on your blog. They will promote the interview to their audience.

Step 35) Pay Attention to On-Page SEO

On-page SEO helps boost your organic traffic. So, always optimize your title, description, content, and images as per On-page SEO rules.

Step 36) Implement Schema Microdata

The structured data will helps to show rich snippets in search results. Mostly it’s helpful to show eCommerce products, events, ratings, etc. It’s really helpful for the improvement of the click-through rate.

Step 37) Effective Email Marketing

Prepare attractive email pitches for your existing users with discounts and other offers of your product or services. It will be useful for customer retention.

Step 38) Make Sure Your Site is Mobile Friendly

Your website should be accessible and viewable across a range of devices. So, any type of user will not leave your website because of an ugly view of your website.

Step 39) Make Sure Your Site is Fast

Make sure your website is loading in 4 to 7 seconds because no one likes to wait for a long time. Fast websites help to reduce the bounce rate.

Step 40) Analyze Performance of Website

Use Google Analytics and Google search console for analyzing visitors, locations, traffic sources, and many other things. You can use this data to prepare your next strategy.

Step 41) Submit Your Content to Aggregator Sites

Choose aggregator sites and submit your content or links.

Step 42) PPC Ads

If you don’t have time to follow the above tips or you want immediate traffic then go for PPC. If you have experience with PPC campaign managemet then it’s great otherwise you can hire PPC Expert for it.

How to Create a WordPress Child Theme?

wpchildtheme

You want to make a child theme in your WordPress platform and don’t know how to make the child theme in the WordPress then follow the tutorial step and you can get your WordPress child theme in few minutes. It’s a simple tutorial that can give you a better solution.

Step 1)

Make one folder in your theme folder as we make “techinternet”.

wordpresschildtheme1.png

Step 2)

Copy files as display in the below image.

wordpresschildtheme2.png

Step 3)

Open the style.css file and remove all code from that file and put the below code according to change instruction and save it.

/*
Theme Name: Hashencrypted Child (change name as you like)
Theme URL: https://www.garudatechhub.com/ (change URL as your display)
Description: Techinternet WordPress Blog Theme (Set your description)
Author: Ravi Sukhadia (set author name here)
Author URL: https://www.garudatechhub.com/ (set author URL here)
Template: twenty-twelve (set your primary theme folder name here)
Version: 1.0.0 (set theme version here)
Text Domain: Hashencrypted-child (set child theme folder name here)
*/

Step 4)

Open the functions.php file and remove all code from that file and put the below code for taking your style in child theme.

<?php
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );

function enqueue_parent_styles() {
   wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}
?>

Step 5)

Now your child theme is ready. go to wordpress admin section and active your child theme.

How to get your paypal API details?

paypallogin

If you don’t know how to get the PayPal API details for integrating the PayPal with your system then simply follow the tutorial steps and you can get the details of your paypal API. this tutorial will help you to find your details.

Step 1)

Log in with your PayPal account.

paypallogin.png

Step 2)

Move your mouse over the Tools menu in the top navigation. Find More Tools within that. And click it. Scroll the page or search API credentials till you see a box with API credentials written. Click on it.

PayPal-Tools-All-Tools-API-Credentials.png

Step 3)

Once on the API credentials page, click on the last option for NVP/SOAP API integration.

PayPal-API-Access-NVP-SOAP-Integration.png

If this is the first time you are creating API credentials, complete the API Credential Request form.

Step 4)

Once you’ve created the API credentials, you will see View API Signature option under NVP / SOAP API integration. Clicking on that will bring you to a page like the following screenshot. Click on each “Show” link to see the API username, password, and signature.

View-or-Remove-API-signature.png