To enter a WordPress shortcode in a WordPress Template simply use the following php code: – Obviously substitute [shortcode] for your actual shortcode!
Apply hover to before after
To set the hover for a :before or :after declaration use:-
Div 100% of Remaining Content Browser Window
If you want your div to fill 100% of the remaining content / traverse the rest of the browser window width then simply apply the following CSS to the Div:- If the div is nested inside a parent then ensure that the parent has a position ‘relative’ and also that it’s overflow is se to ‘visible.
Prevent Overlapping of li in ul with CSS
If you are splitting your UL into a column format li in a similar way to the below:- … what you might find is that if the li on either side is higher than the other that the corresponding li is overlapped or thrown out of place like so:- The highlighted 3rd item should be starting a new line, but …
Image Link
Create an Image Link in HTML:- Very basic, but useful if you have a memory freeze or want to use this as a code snippit.
Rotate 90 Degrees CSS
If you want to rotate an element by 90 Degrees (or indeed a different degree of your choosing) then apply the following class to the element/div:- Here we should be covering all browsers. Rotate Using Less Less takes a lot of the hard work out of the above for you like so:- This can easily be made into a Less …
WordPress Query Posts String & Array
Here are a few ways to Query Posts in WordPress as a string and array:- Standard ‘Posts’ NB Above we are Querying WP E-Commerce Products as our Custom ‘Post Type’ Query Pages by menu order
WordPress Standard Loop
Here is the WordPress Standard Loop for your reference:-