There may be a situation when you need to display content based on existence of a page or custom post by url. As the example below there are two different parent pages for the same page slug. We assume that certain pages will have the same title, and just have different parent pages. So we want to check if a page exists by url?
Author » Amit Sonkhiya
Restore an older version of a theme or plugin
We usually update themes and plugins installed whenever respective authors release a new version of that program installed in our WordPress software. But at a time I had need to restore an older version of a theme as I was using child theme and the parent theme author made numerous changes in theme files as well as added some new class references which were making child theme incompatible.
Bigger & Fixed Search Box with Dropdown in Bootstrap Navbar
Twitter Bootstrap is powerful mobile first front-end framework that provides all the necessary components to develop responsive websites using its common elements. One of the most popular elements on any website is the top navigation bar and the search widget. On a recent project, I had to implement Bigger & Fixed Search Box with Dropdown in Bootstrap Navbar and making the search bar fixed across different screen size.
Adding Google eCommerce Tracking Code for Events Manager Plugin
Events manager plugin is very good plugin for events management in WordPress powered websites. I wanted to track event booking after successful payment. I used events manager pro plugin for payment. I googled out to add Google eCommerce Tracking Code for Events Manager Plugin but did not find any solution. After all of these, I reviewed plugin code made some tweaks to resolve this. The Patch is stated here to benefit all of you as follows:
Hide WordPress Theme Update Available Notification
I have made and used child theme of one WordPress theme. Later the parent theme got a new version and my client updated that which destroyed child theme’s customization. So I googled to Hide WordPress Theme Update Available Notification.
Post and price tags using CSS3
You can create post and price tags using CSS3 and place them into your blog, ecommerce website or any other kind of website. This is a rather simple CSS trick which uses :before and :after pseudo-elements to draw triangle and circle in post and price tags we are creating here.
How to pass variables to get_template_part() in WordPress
Ok! So you need to pass variables to get_template_part() in WordPress. Sorry because get_template_part() is not made to accept variables or arguments. But here is a better way to achieve the same using WordPress’s locate_template() function within PHP’s include().
Use functions.php to create child theme in WordPress
The old way to create child theme in WordPress is to place a style.css file in your child theme folder and import the parent stylesheet into the child theme. But WordPress documentation stated the use functions.php to create child theme in WordPress and use wp_enqueue_style() to enqueue the parent stylesheet.
Offsetting anchor hash tag links to adjust for fixed header
Sometimes our website has a fixed header or navigation menu that usually remains fixed at the top of the page. When you use the URL anchor (the #fragment part), the browser window will scroll itself (instantly) to bring anchor at the top of the page, leaving the content behind the fixed header. So here we need for offsetting anchor hash tag links to adjust for fixed header to let content appear below the fixed item.
Responsive Best Free WordPress Themes | Nov 2014
This article has collection of selected Responsive Best Free WordPress Themes which I already tested and used in client projects as well. These themes are not only amazing and beautiful but also are free to download and use as well as they don’t have any lite/pro version concern. Grab a coffee or tea and start bookmarking your favorites.