Benedikt
Forum Replies Created
-
The Flash is the : FOUC
https://en.wikipedia.org/wiki/Flash_of_unstyled_content
https://www.paulirish.com/2009/avoiding-the-fouc-v3/
Not sure if this can be avoided within the plugin.
Forum: Plugins
In reply to: [PDF Embedder] Is there a full screen button for the ToolbarThis looks good! Can it be implemented as a button in the Toolbar too?
Forum: Plugins
In reply to: [Jigoshop] Jigoshop does not save Products in the shopping basket.Thanks that worked!
Forum: Plugins
In reply to: [Jigoshop] Jigoshop does not save Products in the shopping basket.Deactivating WP-Super Cache resolves half of the problem. Can I put the settings of super cache to work with Jigoshop?
WP: 4.2.2
Jigoshop: 1.17.7
WPSuperCache: 1.4.4Forum: Plugins
In reply to: [Jigoshop] CSS buttons for checkoutFixed it sorry! ??
First think than write:
.full .button {
position: relative;
top: 0;
float: right;Wondering if there is a standard CSS to input into a theme to make Jigoshop look nice.
Forum: Plugins
In reply to: [Jigoshop] CSS buttons for checkoutNow having another Issue with the css. The continue shopping button is all over the place. I think it would be very useful to know how to add additional css classes. Or do I just not know how to use CSS right?
https://www.net-herzensbildung-fuer-kinder.org/shop/kasse/danke/
Forum: Plugins
In reply to: [Jigoshop] CSS buttons for checkoutThanks that worked well! Did not see the the .buttons class around the a.button
Worked like a charm! Thanks so much for the Support!
Switched it back
Done
Was not able to find a hint of it… In the standard Theme it seems to be working just fine. But the form seems not to be much different to the installed Peekaboo theme.
<?php
/*
* Peekaboo functions
*//*———————————————————————————–*/
/* Register scripts
/*———————————————————————————–*/
function pkb_reg_script() {
if (!is_admin()) {
// comment out the next two lines to load the local copy of jQuery
wp_deregister_script(‘jquery’);
wp_register_script(‘jquery’, ‘https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js’, false, ‘1.7.1’);
wp_register_script(‘cufon’, get_template_directory_uri() . ‘/js/cufon-yui.js’, ‘jquery’);
//wp_register_script(‘cufon1’, get_template_directory_uri() . ‘/js/Museo.font.js’, ‘cufon’);
//wp_register_script(‘cufon2’, get_template_directory_uri() . ‘/js/Museo_Sans.font.js’, ‘cufon’);
wp_register_script(‘superfish’, get_template_directory_uri() . ‘/js/superfish-compile.js’, ‘jquery’);
wp_register_script(‘colorbox’, get_template_directory_uri() . ‘/js/jquery.colorbox-min.js’, ‘jquery’);
wp_register_script(‘supersized’, get_template_directory_uri() . ‘/js/supersized.3.1.3.core.min.js’, ‘jquery’, ‘true’ );
wp_register_script(‘jqueryui’, get_template_directory_uri() . ‘/js/jquery-ui-1.8.13.custom.min.js’, ‘jquery’);
wp_register_script(‘isotope’, get_template_directory_uri() . ‘/js/jquery.isotope.min.js’, ‘jquery’);
wp_register_script(‘tooltip’, get_template_directory_uri() . ‘/js/jquery.tipTip.minified.js’, ‘jquery’);wp_register_script(‘custom’, get_template_directory_uri() . ‘/js/p2.js’, ‘jquery’);
//IE only
wp_register_script(‘iejs’, ‘https://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js’);
wp_register_script(‘selectivizr’, get_template_directory_uri() . ‘/js/selectivizr.js’, ‘jquery’);
//Home only
wp_register_script(‘slider’, get_template_directory_uri() . ‘/js/jquery.nivo.slider.pack.js’, ‘jquery’);
wp_register_script(‘tinycarousel’, get_template_directory_uri() . ‘/js/jquery.tinycarousel.min.js’, ‘jquery’);
//Single only
wp_register_script(‘addthis’, ‘https://s7.addthis.com/js/250/addthis_widget.js’, ”,”,’true’);
//Contact only
wp_register_script(‘jqvalid’, get_template_directory_uri() . ‘/js/jquery.validate.js’, ‘jquery’);//All
wp_enqueue_script(‘jquery’);
wp_enqueue_script(‘superfish’);
wp_enqueue_script(‘colorbox’);
wp_enqueue_script(‘jqueryui’);
wp_enqueue_script(‘tooltip’);
wp_enqueue_script(‘custom’);}
}
add_action(‘init’, ‘pkb_reg_script’);// IE scripts
function pkb_ie() {
global $is_IE;
if($is_IE) {
wp_enqueue_script(‘iejs’); // Make IE to behave like other browsers.
wp_enqueue_script(‘selectivizr’); //CSS3 pseudo-classes and attribute selectors in IE.
}
}
add_action(‘wp_print_scripts’, ‘pkb_ie’);// Supersized scripts
function pkb_load_supersized() {
global $smof_data;
if( $smof_data[‘pkb_supersized_me’] == ‘1’ ){
wp_enqueue_script(‘supersized’);
}
}
add_action(‘init’, ‘pkb_load_supersized’);// Cufon scripts
function pkb_load_cufon() {
global $smof_data;
$google_font = $smof_data[‘pkb_google_font’]; // Disable cufon when using Google Web Fontsif ( $google_font == ” ) {
wp_enqueue_script(‘cufon’);
wp_enqueue_script(‘cufon1’);
wp_enqueue_script(‘cufon2’);
}
}
add_action(‘init’, ‘pkb_load_cufon’);function pkb_init_cufon() {
global $smof_data;
if ($smof_data[‘pkb_google_font’] == ”) { ?>
<script type=”text/javascript”>
jQuery(document).ready(function(){
Cufon.replace(‘.replace,.sidebar-widget h4’,{fontFamily: ‘Museo 500’} );
Cufon.replace(‘.sf-menu a, .replace-2’,{fontFamily: ‘Museo Sans 500’} );
});
</script>
<?php }
}
add_action(‘wp_head’, ‘pkb_init_cufon’);// Home page scripts
function pkb_home_script() {
if (is_page_template(‘page-home.php’)) {
wp_enqueue_script(‘slider’);
wp_enqueue_script(‘tinycarousel’); }
}
add_action(‘wp_print_scripts’, ‘pkb_home_script’);// Single page scripts
function pkb_single_script() {
global $smof_data;
if (is_single() && ( $smof_data[‘pkb_addthis_bar’] == ‘1’)) {
wp_enqueue_script(‘addthis’);
}
}
add_action(‘wp_print_scripts’, ‘pkb_single_script’);// Contact page scripts for validation
function pkb_contact_script() {
if (is_page_template(‘page-contact.php’)) {
wp_enqueue_script(‘jqvalid’); }
}
add_action(‘wp_print_scripts’, ‘pkb_contact_script’);
function pkb_contact_validate() {
if (is_page_template(‘page-contact.php’)) { ?>
<script type=”text/javascript”>
jQuery(document).ready(function(){
jQuery(“#contacform”).validate();
});
</script>
<?php }
}
add_action(‘wp_head’, ‘pkb_contact_validate’);// Isotope scripts
function pkb_filter_script() {
if (is_page_template(‘page-gallery-3-col-side.php’) || is_page_template(‘page-gallery-3-col.php’) || is_page_template(‘page-gallery-4-col-side.php’) ) {
wp_enqueue_script(‘isotope’); }
};
add_action(‘wp_print_scripts’, ‘pkb_filter_script’);// Comment scripts for the threaded comment reply functionality.
function pkb_comment_script() {
if ( is_singular() && get_option( ‘thread_comments’ ) ) {
wp_enqueue_script( ‘comment-reply’ ); }
}
add_action(‘wp_print_scripts’, ‘pkb_comment_script’);/*———————————————————————————–*/
/* Browser detection
/*———————————————————————————–*/
add_filter(‘body_class’,’pkb_browser_class’);
function pkb_browser_class($classes) {
global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone;if($is_lynx) $classes[] = ‘lynx’;
elseif($is_gecko) $classes[] = ‘gecko’;
elseif($is_opera) $classes[] = ‘opera’;
elseif($is_NS4) $classes[] = ‘ns4’;
elseif($is_safari) $classes[] = ‘safari’;
elseif($is_chrome) $classes[] = ‘chrome’;
elseif($is_IE) $classes[] = ‘ie’;
else $classes[] = ‘unknown’;if($is_iphone) $classes[] = ‘iphone’;
return $classes;
}/*———————————————————————————–*/
/* Set content width
/*———————————————————————————–*/if ( ! isset( $content_width ) )
$content_width = 645;
add_action( ‘after_setup_theme’, ‘pkb_setup’ );/*———————————————————————————–*/
/* Initial setup
/*———————————————————————————–*/
if ( ! function_exists( ‘pkb_setup’ ) ):
function pkb_setup() {// This theme styles the visual editor with editor-style.css to match the theme style.
add_editor_style();// Add Thumbnails
add_theme_support( ‘post-thumbnails’ );
add_action( ‘init’, ‘pkb_register_img_sizes’ );
function pkb_register_img_sizes() {
add_image_size( ‘small-thumbnail’, 50, 50, true ); //Latest posts widget thumbnail. 50 px wide by 50 px tall, crop mode.
add_image_size( ’round-thumbnail’, 60, 60, true ); //Homepage round thumbnail. 60 px wide by 60 px tall, crop mode.
add_image_size( ‘gallery-thumbnail-s’, 130, 98, true ); //Gallery page thumbnail. 130 px wide by 98 px tall, crop mode.
add_image_size( ‘gallery-thumbnail-m’, 185, 140, true ); //Gallery page thumbnail. 185 px wide by 140 px tall, crop mode. mode.
add_image_size( ‘gallery-thumbnail-l’, 270, 200, true ); //Gallery page thumbnail. 270 px wide by 200 px tall, crop mode.
add_image_size( ‘single-image’, 628, 9999 ); //Single page thumbnail. 628 px wide and unlimited height.
add_image_size( ‘post-image’, 635, 150, true ); //Regular post thumbnail. 635 px wide by 150 px tall, crop mode.
add_image_size( ‘landing-image’, 640, 200, true ); //Page thumbnail. 640 px wide by 200 px tall, crop mode
add_image_size( ‘slide-image’, 680, 320, true ); //Home page slide image. 680 px wide by 320 px tall, crop mode
}// Add default posts and comments RSS feed links to head
add_theme_support( ‘automatic-feed-links’ );// Available for translation
load_theme_textdomain( ‘peekaboo’, get_template_directory() . ‘/languages’ );$locale = get_locale();
$locale_file = get_template_directory() . “/languages/$locale.php”;
if ( is_readable( $locale_file ) )
require_once( $locale_file );//Register WordPress 3.0+ Menus
register_nav_menus( array(
‘primary’ => __( ‘Primary Navigation’, ‘peekaboo’ ),
) );
register_nav_menus( array(
‘secondary’ => __( ‘Secondary Navigation’, ‘peekaboo’ ),
) );}
endif;/*———————————————————————————–*/
/* WP Title
/*———————————————————————————–*/
function pkb_filter_wp_title( $title, $separator ) {
// Don’t affect wp_title() calls in feeds.
if ( is_feed() )
return $title;// The $paged global variable contains the page number of a listing of posts.
// The $page global variable contains the page number of a single post that is paged.
// We’ll display whichever one applies, if we’re not looking at the first page.
global $paged, $page;if ( is_search() ) {
// If we’re a search, let’s start over:
$title = sprintf( __( ‘Search results for %s’, ‘peekaboo’ ), ‘”‘ . get_search_query() . ‘”‘ );
// Add a page number if we’re on page 2 or more:
if ( $paged >= 2 )
$title .= ” $separator ” . sprintf( __( ‘Page %s’, ‘peekaboo’ ), $paged );
// Add the site name to the end:
$title .= ” $separator ” . get_bloginfo( ‘name’, ‘display’ );
// We’re done. Let’s send the new title back to wp_title():
return $title;
}// Otherwise, let’s start by adding the site name to the end:
$title .= get_bloginfo( ‘name’, ‘display’ );// If we have a site description and we’re on the home/front page, add the description:
$site_description = get_bloginfo( ‘description’, ‘display’ );
if ( $site_description && ( is_home() || is_front_page() ) )
$title .= ” $separator ” . $site_description;// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
$title .= ” $separator ” . sprintf( __( ‘Page %s’, ‘peekaboo’ ), max( $paged, $page ) );// Return the new title to wp_title():
return $title;
}
add_filter( ‘wp_title’, ‘pkb_filter_wp_title’, 10, 2 );/*———————————————————————————–*/
/* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
/*———————————————————————————–*/
function pkb_page_menu_args( $args ) {
$args[‘show_home’] = true;
return $args;
}
add_filter( ‘wp_page_menu_args’, ‘pkb_page_menu_args’ );/*———————————————————————————–*/
/* Change Default Excerpt Length
/*———————————————————————————–*/
function pkb_excerpt_length( $length ) {
return 64;
}
add_filter( ‘excerpt_length’, ‘pkb_excerpt_length’ );/*———————————————————————————–*/
/* Returns a “Learn More” link for excerpts
/*———————————————————————————–*/
function pkb_continue_reading_link() { //Learn more link
global $smof_data;
if ( $smof_data[‘pkb_more_link’] != “” ) {
return ‘
‘. $smof_data[‘pkb_more_link’] .’‘;
}
else {
return ‘
‘. __( ‘Learn more »’, ‘peekaboo’ ) .’‘;
}
}function pkb_continue_reading_button() { //Learn more button on home page
global $smof_data;
if ( $smof_data[‘pkb_more_link_home’] != “” ) {
return ‘
‘ . $smof_data[‘pkb_more_link_home’] . ‘<img class=”arrow” src=”‘. get_template_directory_uri() . ‘/img/nav-right-arrow.png”/>‘;
}
else {
return ‘
‘ . __( ‘Learn more’, ‘peekaboo’ ) . ‘<img class=”arrow” src=”‘. get_template_directory_uri() . ‘/img/nav-right-arrow.png”/>‘;
}
}/*———————————————————————————–*/
/* Replaces “[…]” with an ellipsis and pkb_continue_reading_link().
/*———————————————————————————–*/
function pkb_auto_excerpt_more( $more ) {
if ( is_front_page() ) {
return pkb_continue_reading_button();
}
else {
return pkb_continue_reading_link();
}
}
add_filter( ‘excerpt_more’, ‘pkb_auto_excerpt_more’ );/*———————————————————————————–*/
/* Adds a pretty “Continue Reading” link to custom post excerpts.
/*———————————————————————————–*/
function pkb_custom_excerpt_more( $output ) {
if ( has_excerpt() && ! is_attachment() ) {
if ( is_front_page() ) {
$output .= pkb_continue_reading_button();
}
else {
$output .= pkb_continue_reading_link();
}
}
return $output;
}
add_filter( ‘get_the_excerpt’, ‘pkb_custom_excerpt_more’ );/*———————————————————————————–*/
/* Comments Template
/*———————————————————————————–*/
if ( ! function_exists( ‘pkb_comment’ ) ) :function pkb_comment( $comment, $args, $depth ) {
$GLOBALS[‘comment’] = $comment;
switch ( $comment->comment_type ) :
case ” :
?>
<li <?php comment_class(); ?> id=”li-comment-<?php comment_ID(); ?>”>
<div id=”comment-<?php comment_ID(); ?>” class=”comment_container”>
<div class=”gravatar left”><?php echo get_avatar( $comment, 40 ); ?></div>
<div class=”comment_text ” >
<?php if ( $comment->comment_approved == ‘0’ ) :
echo ‘‘;
_e (‘Your comment is awaiting moderation.’,’peekaboo’);
echo ‘
‘;
endif; ?>
<h5><?php comment_author_link(); ?></h5>
<div class=”comment-meta-container clearfix”>
<div class=”comment-meta commentmetadata left”>comment_ID ) ); ?>”>
<?php
/* translators: 1: date, 2: time */
printf( __( ‘%1$s at %2$s’, ‘peekaboo’ ), get_comment_date(), get_comment_time() ); ?>
</div><!– .comment-meta .commentmetadata –>
<div class=”reply right”>
<?php comment_reply_link( array_merge( $args, array( ‘depth’ => $depth, ‘max_depth’ => $args[‘max_depth’] ) ) ); ?>
<?php edit_comment_link( ‘ | Edit’, ‘ ‘ );?>
</div><!– .reply –>
</div>
<div class=”comment-body”><?php comment_text(); ?></div>
</div>
</div><!– #comment-## –>
<?php break; case ‘pingback’ : case ‘trackback’ : ?>
<li class=”post pingback”>
<p><?php _e( ‘Pingback:’, ‘peekaboo’ ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __(‘(Edit)’, ‘peekaboo’), ‘ ‘ ); ?></p>
<?php
break;
endswitch;
}
endif;/*———————————————————————————–*/
/* Register Sidebars
/*———————————————————————————–*/
function pkb_widgets_init() {
// Common
register_sidebar( array(
‘name’ => __( ‘Primary Sidebar’, ‘peekaboo’ ),
‘id’ => ‘primary-widget-area’,
‘description’ => __( ‘The primary widget area’, ‘peekaboo’ ),
‘before_widget’ => ‘<div id=”%1$s” class=”sidebar-widget %2$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h4 class=”replace”>’,
‘after_title’ => ‘</h4>’,
) );// Home Page
register_sidebar( array(
‘name’ => __( ‘Home Page Sidebar’, ‘peekaboo’ ),
‘id’ => ‘home-sidebar’,
‘description’ => __( ‘The home page sidebar’, ‘peekaboo’ ),
‘before_widget’ => ‘<div id=”%1$s” class=”sidebar-widget %2$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h4 class=”replace”>’,
‘after_title’ => ‘</h4>’,
) );
register_sidebar( array(
‘name’ => __( ‘Homepage First Column’, ‘peekaboo’ ),
‘id’ => ‘home-first-col’,
‘description’ => __( ‘The first column on home page’, ‘peekaboo’ ),
‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h3 class=”replace”>’,
‘after_title’ => ‘</h3>’,
) );
register_sidebar( array(
‘name’ => __( ‘Homepage Second Column’, ‘peekaboo’ ),
‘id’ => ‘home-second-col’,
‘description’ => __( ‘The second column on home page’, ‘peekaboo’ ),
‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h3 class=”replace”>’,
‘after_title’ => ‘</h3>’,
) );
register_sidebar( array(
‘name’ => __( ‘Homepage Third Column’, ‘peekaboo’ ),
‘id’ => ‘home-third-col’,
‘description’ => __( ‘The third column on home page’, ‘peekaboo’ ),
‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h3 class=”replace”>’,
‘after_title’ => ‘</h3>’,
) );
// Shop
register_sidebar( array(
‘name’ => __( ‘Shop Page Categories’, ‘peekaboo’ ),
‘id’ => ‘shop-page-categories’,
‘description’ => __( ‘The shop page sidebar’, ‘peekaboo’ ),
‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”><div class=”inner-widget”>’,
‘after_widget’ => ‘</div></div>’,
‘before_title’ => ‘<h3 class=”replace”>’,
‘after_title’ => ‘</h3>’,
) );// Footer
register_sidebar( array(
‘name’ => __( ‘Footer First Column’, ‘peekaboo’ ),
‘id’ => ‘first-footer-widget’,
‘description’ => __( ‘The first footer widget area’, ‘peekaboo’ ),
‘before_widget’ => ‘<div id=”%1$s” class=”footer-widget %2$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h4 class=”replace”>’,
‘after_title’ => ‘</h4>’,
) );
register_sidebar( array(
‘name’ => __( ‘Footer Second Column’, ‘peekaboo’ ),
‘id’ => ‘second-footer-widget’,
‘description’ => __( ‘The second footer widget area’, ‘peekaboo’ ),
‘before_widget’ => ‘<div id=”%1$s” class=”footer-widget %2$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h4 class=”replace”>’,
‘after_title’ => ‘</h4>’,
) );
register_sidebar( array(
‘name’ => __( ‘Footer Third Column’, ‘peekaboo’ ),
‘id’ => ‘third-footer-widget’,
‘description’ => __( ‘The third footer widget area’, ‘peekaboo’ ),
‘before_widget’ => ‘<div id=”%1$s” class=”footer-widget %2$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h4 class=”replace”>’,
‘after_title’ => ‘</h4>’,
) );
register_sidebar( array(
‘name’ => __( ‘Footer Fourth Column’, ‘peekaboo’ ),
‘id’ => ‘fourth-footer-widget-area’,
‘description’ => __( ‘The fourth footer widget area’, ‘peekaboo’ ),
‘before_widget’ => ‘<div id=”%1$s” class=”footer-widget %2$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h4 class=”replace”>’,
‘after_title’ => ‘</h4>’,
) );
}
add_action( ‘widgets_init’, ‘pkb_widgets_init’ );/*———————————————————————————–*/
/* Removes the default styles that are packaged with the Recent Comments widget.
/*———————————————————————————–*/
function pkb_remove_recent_comments_style() {
global $wp_widget_factory;
remove_action( ‘wp_head’, array( $wp_widget_factory->widgets[‘WP_Widget_Recent_Comments’], ‘recent_comments_style’ ) );
}
add_action( ‘widgets_init’, ‘pkb_remove_recent_comments_style’ );/*———————————————————————————–*/
/* Admin Footer
/*———————————————————————————–*/
function pkb_admin_footer_text( $default_text) {
echo ‘Peekaboo theme by Population2 | Powered by WordPress. Documentation‘ ;
}
add_filter(‘admin_footer_text’, ‘pkb_admin_footer_text’);/*———————————————————————————–*/
/* Custom WP Admin Login Logo
/*———————————————————————————–*/
function pkb_custom_login_logo() {
global $smof_data;
if ( $smof_data[‘pkb_custom_login’] ) {
echo ‘<style type=”text/css”>h1 a { background-image:url(‘.$smof_data[‘pkb_custom_login’].’) !important; } </style>’; }
else {
echo ‘<style type=”text/css”>h1 a { background-image:url(‘.get_template_directory_uri().’/img/logo-login.png) !important; } </style>’;
}
}add_action(‘login_head’, ‘pkb_custom_login_logo’);
/*———————————————————————————–*/
/* Widgets & Shortcodes
/*———————————————————————————–*/
include(“functions/widget-ad245.php”);
include(“functions/widget-flickr.php”);
include(“functions/widget-video.php”);
include(“functions/twitter/widget-twitter.php”);
include(“functions/widget-testimonial.php”);
include(“functions/widget-map.php”);
include(“functions/widget-latest-post.php”);
include(“functions/widget-popular.php”);
include(“functions/widget-download.php”);
include(“functions/widget-single-post.php”);
include(“functions/widget-social.php”);
include(“functions/widget-contact.php”);
include(“functions/shortcodes.php”);
include(“functions/testimonial-fields.php”);
include(“functions/slide-fields.php”);
include(“functions/gallery-fields.php”);
include(“functions/post-types.php”);
include(“functions/tinymce/tinymce.php”);// Allow shortcodes in widgets
add_filter(‘widget_text’, ‘shortcode_unautop’);
add_filter(‘widget_text’, ‘do_shortcode’);require_once (‘admin/common-functions.php’);
/*———————————————————————————–*/
/* Options Framework Theme
/*———————————————————————————–*/
require_once (‘admin/index.php’);
/*——————Adding for JigoShop——————–*/
function themeid_open_jigoshop_content_wrappers()
{
echo ‘<div id=”content” class=”round_8 clearfix”>
<div class=”content”>’;
}function themeid_close_jigoshop_content_wrappers()
{
echo ‘</div></div>’;
}function themeid_prepare_jigoshop_wrappers()
{
remove_action( ‘jigoshop_before_main_content’, ‘jigoshop_output_content_wrapper_end’, 10 );
remove_action( ‘jigoshop_after_main_content’, ‘jigoshop_output_content_wrapper_end’, 10);
remove_action( ‘jigoshop_sidebar’, ‘jigoshop_get_sidebar’, 10 );add_action( ‘jigoshop_before_main_content’, ‘themeid_open_jigoshop_content_wrappers’, 10 );
add_action( ‘jigoshop_after_main_content’, ‘themeid_close_jigoshop_content_wrappers’, 10 );
add_action(‘jigoshop_before_main_content’, create_function(”, ‘echo “<section id=\”main\”>”;’), 10);
add_action(‘jigoshop_after_main_content’, create_function(”, ‘echo “</section>”;’), 10);
}
add_action( ‘wp_head’, ‘themeid_prepare_jigoshop_wrappers’ );add_action(‘jigoshop_checkout_billing’, function(){
echo ‘<input type=”hidden” name=”shiptobilling” value=”1″/>’;
},11);
?>No. I think I must have removed the fields a long time ago manually. And probably not in the most smart way. Don’t remember how I did it…
Hey Krzysztof,
it still does not work. Is there a way to reset the form to the initial state?
Thanks!
Forum: Plugins
In reply to: [Cool Video Gallery] video not foundhaving the same issue!