• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Gokul Deepak

Gokul Deepak

GoCool and Debug

  • Home
  • Terraform
  • WordPress
  • Android
  • How to
  • About Me

Gokul Deepak S

Cloudflare SSL off vs Flexible Vs Full vs Full Strict

August 18, 2017 by Gokul Deepak S Leave a Comment

CloudFlare provides free CDN and also it provides free SSL. When adding SSL there will be four options like i) off ii) Flexible iii) Full iv) Full (Strict). In this post, we are going to deal with the difference between CloudFlare SSL off vs Flexible Vs Full vs Full Strict.
The difference between all these four can be explained simply by a picture. I have attached that comparing pictures and have a look at that and you will understand it clearly.
I do hope you know what CDN means. CDN will act as a connection between the server and the user so that will load websites fastly using caches and nearby servers or server’s downtime.

Off:

Cloudflare SSL off vs Flexible Vs Full vs Full Strict

No certificates between User and CloudFlare. No Certificates Between CloudFlare and Server.

 

Flexible:

There will be certificates between User and CloudFlare. No Certificates Between CloudFlare and Server.

Full:

There will be certificates between User and CloudFlare. There will be Certificates Between CloudFlare and Server.

Full Strict:

Strong certificates between User and CloudFlare. Strong Certificates Between CloudFlare and Server.

 

Filed Under: Wordpress

www vs non-www Which Should You use

August 18, 2017 by Gokul Deepak S Leave a Comment

After much reading on www vs non-www Which Should You use, I have concluded today that using www is good. But only if start a new blog with no much traffic. Else it may affect your ranking.

If are starting new Website then go for www.yourdomain.com else please don’t shift to any other.

Will www help for SEO?
No, Never. Google has said it official that anything is okay for search engine and it won’t consider it for ranking factor.

you may have a doubt that then why I have recommended using www than non-www. It is because of technical purposes.

  1. It may help when our site gets huge traffic. If there is a huge traffic in our server it will be easy to maintain the traffic with www from other subdomains of your website. your non-www website won’t have CNAME where as there will be CNAME for www domains.
  2. It will be easy to manage cookies for www domains.

When setting up www domains don’t forget to redirect non-www domains to www domains.

Filed Under: Wordpress

How to Display ads only on Desktop browsers and not in Mobile Browser WordPress

August 18, 2017 by Gokul Deepak S Leave a Comment

In this post, I’m going to share you the method of How to Display ads only on Desktop browsers and not in Mobile Browser.

Mission: How to Display ads only on Desktop browsers and not in Mobile Browser

Requirements: WordPress

Step 1: Go to our admin panel. Appearance-> Widgets.

Step 2: Add Text widget.

Step 3: Paste this Code

 

<style>
@media (max-width: 1023px) {.hidead {display: none !important;}}</style>

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

<ins class="adsbygoogle hidead" style="display: block;" data-ad-client="ca-pub-123456789" data-ad-slot="01234567890" data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

 

Step 4: Change client id and ad slot id.

Mission Completed.

Filed Under: Wordpress

Reduce Navigation Menu to One Level Depth in Genesis

August 1, 2017 by Gokul Deepak S Leave a Comment

Reduce Navigation Menu to One Level Depth in Genesis
Below is the code to reduce the primary navigation menu to one level depth in Genesis.

add_filter( ‘wp_nav_menu_args’, ‘prefix_generate_primary_menu_args’ );
function prefix_generate_primary_menu_args( $args ){

if( ‘primary’ != $args[‘theme_location’] )
return $args;

$args[‘depth’] = 1;
return $args;

}
reduce-primary-navigation-menu-one-level-depth.php

 

Below is the code to reduce the secondary navigation menu to one level depth in Genesis.

add_filter( ‘wp_nav_menu_args’, ‘prefix_generate_secondary_menu_args’ );
function prefix_generate_secondary_menu_args( $args ){

if( ‘secondary’ != $args[‘theme_location’] )
return $args;

$args[‘depth’] = 1;
return $args;

}
reduce-secondary-navigation-menu-one-level-depth.php

Filed Under: Wordpress Tagged With: Genesis

How to Login in Xenforo in Two Factor Authentication without Authenticator App and Lost Back up Codes

July 2, 2017 by Gokul Deepak S Leave a Comment

It is a common problem. Many of the administrators would have undergone this situation as we would have lost mobile or uninstalled authentication app and also have lost backup code somewhere else. Simply follow this step to log in.

Step 1: Go to Your hosting service

Step 2: Go to File Manager

Step 3: Open the folder Library

Step 4: Open the File Config.php

Step 5: Type the  following code in last line of Config.php

$config['enableTfa'] = false;

*Mission Success*

Filed Under: Xenforo

How to Display Today’s Date in WordPress

June 28, 2017 by Gokul Deepak S Leave a Comment

Many blogs and websites use Magazine style of theme and so the like to add date in the page. It was first started by newspapers but now many non newspaper blogs too wanted to display date. Displaying todays’s date looks professional. Before somedays adding Today’s date was difficult but now after many updates it is very easy in wordpress to display Today’s date in any wordpress theme. Yes, You can use it in Studiopress, Genesis, Theme forest and in any theme. Let me share this simple method to display Today’s date in WordPress. This method is not onl exclusive for wordpress but you can also apply this for any PHP based websites.

Display Today’s Date:

Place this code in header.php

<?php echo date('l jS F Y'); ?>

If you are using Genesis theme then simply paste this using Simple hook theme.

The above code will display the date in the following format:

Friday, 1st September 2017

You can also change the format of this date using PHP format.

How to Display Today’s Date in WordPress

To Add Color in Date:

Using CSS you can change the colors. To use css add the date template tag like this:
<span class="date"><?php echo date('l jS F Y'); ?></span>

Now in your theme’s style sheet you can add CSS, like this:
.date {
color: blue;
border: 1px solid #CCC;
}


Method 2:

Go to Settings > General and select the date format in there and simply add this code instead of the above one:
<?php echo date(get_option('date_format')); ?>

Filed Under: Wordpress

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • Interim pages omitted …
  • Page 11
  • Go to Next Page »

Primary Sidebar

Popular Pages

  • How to install OwnCloud on Bluehost
  • Home
  • How to find the date of the Facebook group it was created
  • How to Stock ROM using SP flash

Archives

Categories

  • Android
  • Apache
  • AWS
  • Blogger
  • Computer Tips
  • DevOps
  • Docker
  • Earn
  • Facebook Tips
  • Git
  • Google Tips
  • Hosting
  • How to
  • Laptop Tips
  • Laptops
  • Linux
  • Mobile
  • MongoDB
  • Nginx
  • Node JS
  • Notepad++
  • PostgresQL
  • Terraform
  • Ubuntu
  • Wordpress
  • Xenforo

Tags

Android Android One AWS Bluehost Comparisions Custom ROM Elementor Facebook Genesis Genesis Sample Theme Google Drive How to Lineage OS Notes OnePlus One OwnCloud Rooting Smartphones Stock ROM Studiopress Tomcat Wordpress plugin

Copyright © 2025 · Maintained by GokulDeepak

 

Loading Comments...