If you want to protect all posts within selected post type (for example all products), you can try my Bulk Password Protect Post Types plugin. I published this plugin few days ago and it allows you to choose one or more post types and set password for all posts within. If you like it, feel free […]
If you have a situation where you would like to change href atribute (URL, that is), but can’t access the code directly, you can definitely try using jQuery prop():
So all you need to do is target <a> element within container and this should do the trick.
Ever had a project where you had to create a child theme for WordPress “X | The Theme” but you didn’t have the original child theme available? If you used any of the child theme configurators, there is a big chance that child theme didn’t work or didn’t import styles. In that case, don’t hesitate […]
Believe it or not, something like this will do:
You can also center the content using text-align. Now as for width, some say that it is required, but in many cases I didn’t see any difference (I guess this is dependent on the browser). And you’re encouraged to add max-width combined with width:100% values.
This is actually a very easy stuff to do – if you have the need for setting up wholesale prices, but exclude tax from the checkout, you can go with the following plugin (59 usd cost) – WooCommerce Wholesale Prices. You will also need to have the free version installed, along with the premium one.
Here is the scenario – you created that awesome CSS and are dying to get it online. The client also. The website is hosted on WP Engine and is using its famous aggressive caching mechanism. You save the changes into style.css or elsewhere and clear the cache. But you still see the old style.css. You do it again […]
One of the powerful (or let’s say useful) functions that ship with WMPL is ICL_LANGUAGE_CODE, allowing you to translate strings using PHP conditional check. This is particularly useful for translating widgets and some other theme translations. But if you’re not inclined to purchase WMPL, but still need this feature, I only found it within Polylang plugin (when talking about […]
If you want to check if you are on custom post type singular or custom post type archive within your WordPress website, you can perform the following check:
In this particular case, we are checking if we are on locations custom post type or on the archive of that CPT.
One of the reasons you might want to replace Visual Composer lightbox (it is using prettyPhoto actually) is because of the mobile view where images opened using the effect are so small that you can hardly see or scroll through them. Several people have asked about this on official Visual Composer website, but they only […]