This file contains 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
<div class="row" style="color:#f0f0f0;"> | |
<div id="foo" class="span4 bar"> | |
<div class="apply-bg-here"> | |
<h3>Box 1 Title</h3> | |
<div class="textwidget"> | |
Put a lot of info here like the font should be #f0f0f0 and the background should be #232728 and that lipsum cume laude is greek for taking up space. | |
</div> | |
</div> | |
</div> <!-- END SPAN 4 --> |
This file contains 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
// replace "Home" link in primary nav with an icon | |
add_filter( 'walker_nav_menu_start_el', 'pp_walker_nav_menu_start_el', 11, 4 ); | |
function pp_walker_nav_menu_start_el( $item_output, $item, $depth, $args ) { | |
if (($args->theme_location == 'primary_navigation') && ($item->title == 'Home')) { | |
$domDocument = new DOMDocument(); | |
$domDocument->loadHTML($item_output); | |
$domElement = $domDocument->createElement('i', ''); | |
$domElement->setAttribute('class', 'icon-home icon-large'); | |
$item = $domDocument->getElementsByTagName('a')->item(0); |
This file contains 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
// a possible workaround | |
function my_add_rewrites($content) { | |
global $wp_rewrite; | |
$new_non_wp_rules = array( | |
site_url('checkout/(*)') => plugins_url('checkout.php?$1'); | |
); | |
$wp_rewrite->non_wp_rules = array_merge($wp_rewrite->non_wp_rules, $new_non_wp_rules); |
NewerOlder