Skip to content

Instantly share code, notes, and snippets.

<?php
add_filter("the_content", "the_content_filter");
function the_content_filter($content) {
// array of custom shortcodes requiring the fix
$block = join("|",array("col","shortcode2","shortcode3"));
// opening tag
@agusmu
agusmu / style.css
Created May 31, 2013 17:05
PrimaShop - Add custom background color for featured header in the homepage only
/* Add custom background color for featured header in the homepage only */
body.home #header-featured {
background: #F00;
}
@agusmu
agusmu / style.css
Created June 1, 2013 10:02
PrimaShop - Different header logo for different devices in responsive design
/* Change the width of header title and menu. */
/* #header-title (25%) + #header-menu (75%) = 100% */
#header-title {
width: 25%;
}
#header-menu {
width: 75%;
}
/* Default logo image (left aligned). */
@agusmu
agusmu / style.css
Created June 8, 2013 13:54
PrimaShop - Change header logo and header menu width
#header-title {
width: 35%;
}
#header-menu {
width: 65%;
}
@agusmu
agusmu / style.css
Created June 9, 2013 16:03
PrimaShop - Centering product elements on Shop page
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
text-align:center;
}
.woocommerce .products .star-rating, .woocommerce-page .products .star-rating {
float:none;
display:block;
margin-left:auto;
margin-right:auto;
}
@agusmu
agusmu / style.css
Created June 10, 2013 06:00
PrimaShop - Removing link outline (dotted border after click)
a:focus, a:active { outline: none; }
@agusmu
agusmu / style.css
Created June 10, 2013 12:21
PrimaShop - Removing top and bottom padding on boxed style
body.stylelayout-boxed #container {
padding-top: 0;
padding-bottom: 0;
}
@agusmu
agusmu / style.css
Created June 10, 2013 12:36
PrimaShop - customize font size and weight of header menu
/* header menu - top level */
#header-menu .menu-primary a, #header-menu .menu-primary a:visited {
font-size: 14px;
font-weight: bold;
}
/* header menu - dropdown */
#header-menu .menu-primary li li a, #header-menu .menu-primary li li a:visited {
font-size: 12px;
font-weight: normal;
}
@agusmu
agusmu / single.php
Created June 13, 2013 00:23
PrimaShop - Display Featured Image on Single Post and/or Page
<?php
prima_image( array (
'width' => 700,
'height' => 275,
'attachment' => false,
'image_class' => 'image-featured',
'link_to_post' => true
) );
?>
@agusmu
agusmu / prima-header-action.php
Created June 20, 2013 00:59
PrimaShop - Adding Additional Button On Call To Action Area
<?php
/**
* The template for displaying header call to action.
*
* WARNING: This file is part of the PrimaShop parent theme.
* Please do all modifications in the form of a child theme.
*
* @category PrimaShop
* @package Templates
* @author PrimaThemes