Instantly share code, notes, and snippets.
- Pittsburgh, PA
- melindahelt.com
robneu
/ genesis-nav-space-fix.css
Last active
May 21, 2018 20:45
Remove unwated space from nav elements on Genesis themes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * The Default Genesis styles have a bug which causes extra unwanted | |
| * space to display in the nav menu bar elements. This will remove the | |
| * extra space cross-browser. The reason for the strange .001px font size | |
| * is due to a bug on older Andorid devices. | |
| * | |
| * Note: I've used the default Genesis styles here as an example. The only | |
| * actual change is the font-size rule on both selectors. | |
| * | |
| * Reference link: http://css-tricks.com/fighting-the-space-between-inline-block-elements/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'get_the_content_limit_allowedtags', 'get_the_content_limit_custom_allowedtags' ); | |
| /** | |
| * @author Brad Dalton | |
| * @example http://wp.me/p1lTu0-a5w | |
| */ | |
| function get_the_content_limit_custom_allowedtags() { | |
| // Add custom tags to this string | |
| return '<script>,<style>,<br>,<em>,<i>,<ul>,<ol>,<li>,<a>'; |