Internet Resource

Display the Featured Image Only on the First Page

Remove the featured image from the rest of the next page which post using the code <!–NextPage–>   <!–NextPage–> I have the featured image in the single page. In my site I split the posts into multiple pages using <!–NextPage–> in editor. Also I have a <?php the_post_thumbnail( 'single-post-thumbnail' ); ?> in my single.php file. What …

Internet Resource

Install Postfix to Send Email Instead of Sendmail in Centos LNMP

If your email can’t work in LNMP or in centos, why not change it to Postfix? Which is simple and faster than sendmail! What is Postfix? It is Wietse Venema’s mail server that started life at IBM research as an alternative to the widely-used Sendmail program. Now at Google, Wietse continues to support Postfix. Here …

Hosting

How to Solve “xz compression not available” Error in Centos

error xz compression not available

If you want to install or update use the yum command and got this error in Centos server: Error: xz compression not available Here is the solution. This problem comes if you installed a wrong epel release on your machine. If so, then you need to remove the epel release by yum remove epel-release Sometimes …

Tricks

[Solved] How to Remove WordPress Menu Class & ID

Some of you may want to remove wp_nav_menu remove classes from li Just like this: <div id="navi"> <div class="menu-primary-container"><ul id="menu-primary" class="menu"><li id="menu-item-14" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-14"><a href="http://localhost/2in1design/intro-2/">Intro</a></li> <li id="menu-item-16" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-16"><a href="http://localhost/2in1design/category/portfolio/">Portfolio</a></li> <li id="menu-item-20" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20"><a href="http://localhost/2in1design/contact/">Contact</a></li> <li id="menu-item-15" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-15"><a href="http://localhost/2in1design/category/blog/">Blog</a></li> <li id="menu-item-17" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-17"><a href="#">Shop</a></li> …