Sometimes you want to password protect a category or certain categories in your WordPress website. Or wish only logged-in users with appropriate roles to access protected categories or custom post types category (taxonomy) within a public blog.
Tag » Visibility
Add a Link Back to Your Site Rather Content Copy Protection
Many authors try to protect visitors from copying their content by some code or plugin. But I would suggest adding a link back to your site rather protecting. Here, we’re telling reasons as well as mentioning a nifty plugin that can add a link back to your site with pretty settings.
Off-canvas Sidebar and Menu – WordPress and Bootstrap
Off-canvas sidebar and menu are quite popular. These collapsible sidebars offer a lot of convenient to put extra content on the page. You can implement an off-canvas sidebar in a Bootstrap powered website as well. All you need is a little HTML, CSS, and jQuery code.
3 Ways – Convert a PHP Object to an Array and Vice-Versa
Objects and arrays are essential parts of our day to day programming. PHP object to array and array to object conversions are quite common requirements. We are mentioning three ways that you can use to convert PHP object to an array.
Hide Categories in WordPress Admin Post Editor – Exclude or Remove
WordPress offers hooks to exclude or hide categories from the Post Editor in the admin area. You can remove the category meta box as well. Hiding categories with CSS is also possible. Here I will tell you different ways to hide categories in WordPress Admin Post Editor.
Screen Options Not Working in WordPress Dashboard
Screen Options Not Working / Saving in WordPress Dashboard is a very irritating problem. Once you update / save any screen option and it doesn’t work at all. Or does only once and fails on next page reload.
Make the Footer Stick to the Bottom of a Page
When a page contains a large amount of content, the footer is pushed down off the viewport, and if you scroll down, the page ‘ends’ at the footer. However, If the page has small amount of content, the footer can sometimes ‘cling’ to the bottom of the content, floating halfway down the page, and leaving a blank space underneath, which looks ugly. So we need to make the footer stick to the bottom of page (not always fixed and visible).
Fancybox ajax content & navigation issue in group & popup
While working with fancybox, you might have noticed that any button or link or input inside fancybox popup just behaves like previous/next item slider, making that coming item to appear in popup rather of doing it’s assigned code on click. All the reason is the width specified for `fancybox-nav` class with higher `z-index` for it.
Difference between “display:none”, “visibility:hidden” or “opacity:0”
In HTML, We need to hide and show the elements according to our requirement and we achieve this with different ways. An element could be hidden with “display:none”, “visibility:hidden” or “opacity:0”. But these options are used according to their requirement because their usage are different.
How to check if something is hidden in jQuery
In jQuery and css, We hide and show the visibility of the element.We can use the functions .hide(), .show() or .toggle() or we can do it using css function also. How would we test if an element is visible or hidden using jQuery?