Candymuse
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Gallery Hover TitlesCan anyone help with this?
Forum: Fixing WordPress
In reply to: Gallery Hover TitlesI’m using the WordPress shortcode [gallery] to create the Gallery.
(I also have JetPack installed)Forum: Plugins
In reply to: [WooCommerce] Woocommerce / Payment Gateways – need to remove HTML tagsI got the PayPal part of this solved with the help of WooThemes support:
You’d need a custom filter in your functions.php to filter on ‘woocommerce_paypal_args’.
This gist is untested, but should allow you to manipulate the item names before sending to paypal: https://gist.github.com/mikejolley/8180728
Forum: Plugins
In reply to: Woocommerce / Payment Gateways – need to remove HTML tagsI am moving this post to the WooCommerce Plugin section of the forum.
Great idea – thanks ??
I will look into this and let you know.
Good news – it’s working now.
I guess <!– –> commenting is not allowed in functions.php
I removed these and it works fine now.
An empty functions.php file still causes the problem.
I take this back – a blank functions.php file doesn’t cause a conflict.
Let me do some more testing…
Additions for 4 features:
1. Favicon
2. Additional menus
3. Custom CSS for login page
4. Remove admin bar for users except admin(code below)
I tried removing each item to see if that affected the issue. An empty functions.php file still causes the problem.
<!– CMZ add favicon –>
<?php
function add_theme_favicon() {
echo ‘<link rel=”shortcut icon” href=”‘ . get_bloginfo(‘stylesheet_directory’) . ‘/images/favicon.ico” >’;
}
add_action(‘wp_head’, ‘add_theme_favicon’);
?><!– CMZ add extra menus –>
<?php
register_nav_menu( ‘primary’, __( ‘Navigation Menu’, ‘twentythirteen’ ) );
register_nav_menu( ‘secondary’, __( ‘Bottom Menu’, ‘twentythirteen’ ) );
register_nav_menu( ‘tertiary’, __( ‘Footer Menu’, ‘twentythirteen’ ) );
register_nav_menu( ‘quaternary’, __( ‘Top Menu’, ‘twentythirteen’ ) );
?><!– CMZ add CSS file for customizing login page –>
<?php
function my_login_stylesheet() { ?>
<link rel=”stylesheet” id=”custom_wp_admin_css” href=”<?php echo get_bloginfo( ‘stylesheet_directory’ ) . ‘/style-login.css’; ?>” type=”text/css” media=”all” />
<?php }
add_action( ‘login_enqueue_scripts’, ‘my_login_stylesheet’ );
?><!– CMZ remove admin bar for users except admin –>
<?php
add_action(‘after_setup_theme’, ‘remove_admin_bar’);
function remove_admin_bar() {
if (!current_user_can(‘administrator’) && !is_admin()) {
show_admin_bar(false);
}}
?>