• 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

Wordpress

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 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

Open Live Editor Review

June 28, 2017 by Gokul Deepak S Leave a Comment

I have been using WordPress for the past 10 years. Usually I will be writing small posts and so it was easy for me to post something in WordPress. But recently I have started to write some long essays and so I feel hard to edit in the WordPress. Even though WordPress editor is good and I have tried dozens of plugins for WYSIWYG. There was slight delay in loading the editor and it was not the fastest. I wanted to use some offline editor software or some applications which loads fast and easy to organize thousands of words. After a little search I started using Evernote. But there were lot of limitations in Evernote and so I have shifted to Google Docs which is % free unlike Evernote which is a freemium software.

Google Docs had some issues especially while cop paste content. The alignment of the text in WordPress was not the same as in Google Docs so it became a double time work to edit in google docs and to format in WordPress editor. Open Live Editor Review

Finally I have found Windows Live Editor. But the problem with windows live editor is no recent updates for the application. There was no support for it. I can’t find a solution for windows 10. So I have shifted to Open Live Editor.

Pros:

  • Easy Editing.
  • No Need To Save while typing. Text will be saved Automatically.
  • Need not have to save backup text separately.
  • WYSWYG
  • Supports Theme of our Blog so that you can get a preview of how it would look in our website.
  • Can Attach Picture, Video
  • Hyperlink supports to link our other posts
  • Can set Categories, Add Tags, Change Post Dates
  • Checks Spelling
  • Supports Multi Platform like WordPress.com, WordPress, Blogger, Typepad etc.
  • Supports Multi blog/ Website
  • Can Publish from the editor.
  • And beyond everything it is Free Free Free!!!

Cons:

Currently It supports only recent posts and not all the posts that we have posted in our Website/Blog. It would be nice If we can also edit old posts.

Does not counts number of words

By the way I’m Posting this using Open Live Editor

Filed Under: Blogger, Wordpress

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Go to Next Page »

Primary Sidebar

Popular Pages

  • Home
  • How to find the date of the Facebook group it was created
  • Yureka Yu Plus vs Lenovo K3 Note
  • How to Install Windows without GRUB rescue
  • How to Remove LinkWithin logo under 'You Might Also Like' widget in blogger

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...