Forum Replies Created
-
AuthorPosts
-
EmLY14
MemberThanks Victor but I dont know how to do this.
EmLY14
MemberHi Victor,
Below is what I found in my Functions.php file. Looks similar to what you mentioned. Is there an easy fix to change the code to help with the quantity display?
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 40;' ), 20 );
function woocommerce_quantity_input() {
global $product;
$defaults = array(
'input_name' => 'quantity',
'input_value' => '1',
'max_value' => apply_filters( 'woocommerce_quantity_input_max', '', $product ),
'min_value' => apply_filters( 'woocommerce_quantity_input_min', '', $product ),
'step' => apply_filters( 'woocommerce_quantity_input_step', '', $product ),
'style' => apply_filters( 'woocommerce_quantity_style', 'float:left; margin-right:10px;', $product )
);
if ( ! empty( $defaults['min_value'] ) )
$min = $defaults['min_value'];
else $min = 1;
if ( ! empty( $defaults['max_value'] ) )
$max = $defaults['max_value'];
else $max = 20;
if ( ! empty( $defaults['step'] ) )
$step = $defaults['step'];
else $step = 1;
$options = '';
for ( $count = $min; $count <= $max; $count = $count+$step ) {
$options .= '<option value="' . $count . '">' . $count . '</option>';
}EmLY14
MemberThat has done it, thank you Matt.
EmLY14
MemberThanks Brad. It is already set to position: fixed; and moves with the page.
?
EmLY14
MemberThank you for your help @braddalton, all sorted 🙂
EmLY14
MemberI am running Version: 2.2.3
Just to confirm I need to add all of the code including the Uncomment piece into the functions folder -
add_filter( 'wp_nav_menu_items', 'theme_menu_extras', 10, 2 );
/**
* Filter menu items, appending either a search form or today's date.
*
* @param string $menu HTML string of list items.
* @param stdClass $args Menu arguments.
*
* @return string Amended HTML string of list items.
*/
function theme_menu_extras( $menu, $args ) {
//* Change 'primary' to 'secondary' to add extras to the secondary navigation menu
if ( 'primary' !== $args->theme_location )
return $menu;
//* Uncomment this block to add a search form to the navigation menu
/*
ob_start();
get_search_form();
$search = ob_get_clean();
$menu .= '<li class="right search">' . $search . '';
*/
return $menu;EmLY14
MemberThank you @braddalton but this didn't work when I added the code to my functions folder.
EmLY14
Memberhi Brad
This is what it currently looks like - http://onwardtradingdev.freshapproachpr.co.uk/
Scroll down to the third section. This is where I would like the two rows of four, but currently it only allows me to have three in a row!EmLY14
MemberLogin using
Tr4nsGl0ba!EmLY14
MemberI added several Genesis Featured Page widgets to area 3 of the home page. Ideally I would like two rows of four.
EmLY14
MemberThanks for this braddalton. I am able to bring the width down and was hoping that a fourth widget would join the line but sadly not. It all moved over to the left and remained as three widgets.
Am I asking for too much to adjust this theme?
EmLY14
MemberI have fixed that last one myself. It has worked thank you genwrock for your help and supplying the code.
EmLY14
MemberIt now says there is another error - Parse error: syntax error, unexpected end of file in /homepages/46/d539399353/htdocs/clickandbuilds/Panel2Paint/wp-content/themes/corporate/functions.php on line 75
EmLY14
MemberGenwrock
I made all the code changes you sent over and on refreshing my site I now get this error
Parse error: syntax error, unexpected '&' in /homepages/46/d539399353/htdocs/clickandbuilds/Panel2Paint/wp-content/themes/corporate/functions.php on line 66
EmLY14
Memberpastebin link - http://pastebin.com/vTsKvYSe
Let me know if you need anything else, thank you.
EmLY14
MemberThank you Ryan
EmLY14
MemberDo you also know if I can add a live link to the footer? I have gone with the basic footer elements so as not to have to write any code.
Thank you
EEmLY14
MemberThank you both this worked!
-
AuthorPosts