Handy snippets
172 views | +0 today
Follow
Handy snippets
A collection of handy code snippets
Curated by jennybeaumont
Your new post is loading...
Your new post is loading...
Scooped by jennybeaumont
Scoop.it!

How to Wrap a Wordpress Sub menu with DIV ~ Web Development Spiders

How to Wrap a Wordpress Sub menu with DIV ~ Web Development Spiders | Handy snippets | Scoop.it
Description-Here
more...
No comment yet.
Scooped by jennybeaumont
Scoop.it!

Centering Percentage Width/Height Elements | CSS-Tricks

Centering Percentage Width/Height Elements | CSS-Tricks | Handy snippets | Scoop.it
If you know the exact width/height of an element, you can center it smack dab in the middle of its parent element easily with this classic trick: top and l
more...
No comment yet.
Scooped by jennybeaumont
Scoop.it!

WordPress › Support » Confilct with WPML plugin

WordPress › Support » Confilct with WPML plugin | Handy snippets | Scoop.it
jennybeaumont's insight:

Great snippet to update the fabulous Post Type Switcher plugin to be compatible with WPML.

more...
No comment yet.
Scooped by jennybeaumont
Scoop.it!

Allow Users to Update their Profile from Front End with Gravity Forms

Allow Users to Update their Profile from Front End with Gravity Forms | Handy snippets | Scoop.it
Using Gravity Forms, you can allow users to edit their profile from a simple form on the front-end of your site, to integrate with the styling of your site.
jennybeaumont's insight:

Or maybe this...

more...
No comment yet.
Scooped by jennybeaumont
Scoop.it!

Force Files to Download (Not Open in Browser) | CSS-Tricks

Force Files to Download (Not Open in Browser) | CSS-Tricks | Handy snippets | Scoop.it
AddType application/octet-stream .csv AddType application/octet-stream .xls AddType application/octet-stream .doc AddType application/octet-stream .avi
more...
No comment yet.
Scooped by jennybeaumont
Scoop.it!

WordPress Check User Role Function

WordPress Check User Role Function | Handy snippets | Scoop.it
WordPress usually has a built in function for just about everything—it's just a matter of finding it. In our case, we needed a function to check if a logged in user had a certain role. If not, show them different content.
more...
No comment yet.
Scooped by jennybeaumont
Scoop.it!

Get the term ID on custom taxonomy archive pages - WPEssence Blog

jennybeaumont's insight:

Great snippet for creating custom taxonomy templates!

more...
No comment yet.
Scooped by jennybeaumont
Scoop.it!

Show All attached images for the current post excluding featured thumbnail - Wordpress Expert

Show All attached images for the current post excluding featured thumbnail - Wordpress Expert | Handy snippets | Scoop.it
If you want to display all the attachments of current post excluding featured thumbnail then you can use following code snippet. First we have to find f
more...
No comment yet.
Scooped by jennybeaumont
Scoop.it!

Media Queries for Standard Devices | CSS-Tricks

Media Queries for Standard Devices | CSS-Tricks | Handy snippets | Scoop.it
/* Smartphones (portrait and landscape) ----------- */ @media only screen and (min-device-width : 320px) and (max-device-width : 480px) { /* Styles *
more...
No comment yet.
Scooped by jennybeaumont
Scoop.it!

WordPress › Support » [Plugin: Types - Custom Fields and Custom Post Types Management] WYSIWYG auto p?

WordPress › Support » [Plugin: Types - Custom Fields and Custom Post Types Management] WYSIWYG auto p? | Handy snippets | Scoop.it
more...
No comment yet.
Scooped by jennybeaumont
Scoop.it!

Add Custom Fields To RSS Feed

Add Custom Fields To RSS Feed | Handy snippets | Scoop.it
By default custom fields won't appear in your RSS feed. Use this wordpress snippet to add you custom fields to the RSS feed.
more...
No comment yet.
Scooped by jennybeaumont
Scoop.it!

Edit WordPress user profile with Gravity Forms

Edit WordPress user profile with Gravity Forms | Handy snippets | Scoop.it
Use Gravity Forms to create a front end page for users to edit their WordPress profile.
jennybeaumont's insight:

Need to try this...

more...
No comment yet.
Scooped by jennybeaumont
Scoop.it!

Add/remove contact info fields in WordPress user profiles

Add/remove contact info fields in WordPress user profiles | Handy snippets | Scoop.it
Edit functions.php within your WordPress theme to add or remove extra contact fields for user profiles.
jennybeaumont's insight:

Who even uses AIM?

more...
No comment yet.
Scooped by jennybeaumont
Scoop.it!

Gravity Forms custom taxonomies dropdown | Remco Tolsma

Via Gravity Form is het mogelijk om je bezoekers (concept)berichten te laten plaatsen. Je kunt hierbij gebruik maken van verschillende vooraf gedefinieerde
more...
No comment yet.