• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

EmLY14

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • March 3, 2016 at 1:49 pm in reply to: Product quantity not displaying correctly in cart #180559
    EmLY14
    Member

    Thanks Victor but I dont know how to do this.

    March 2, 2016 at 9:01 am in reply to: Product quantity not displaying correctly in cart #180444
    EmLY14
    Member

    Hi 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>';
    }

    February 24, 2016 at 4:37 am in reply to: Making a Nav Menu Static #179774
    EmLY14
    Member

    That has done it, thank you Matt.

    February 23, 2016 at 9:29 am in reply to: Making a Nav Menu Static #179716
    EmLY14
    Member

    Thanks Brad. It is already set to position: fixed; and moves with the page.

    ?

    December 7, 2015 at 11:16 am in reply to: Adding Search to Nav Bar #173008
    EmLY14
    Member

    Thank you for your help @braddalton, all sorted 🙂

    December 7, 2015 at 10:43 am in reply to: Adding Search to Nav Bar #172993
    EmLY14
    Member

    I 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;

    December 7, 2015 at 9:05 am in reply to: Adding Search to Nav Bar #172958
    EmLY14
    Member

    Thank you @braddalton but this didn't work when I added the code to my functions folder.

    August 18, 2015 at 10:29 am in reply to: Changing widgets on home page #162752
    EmLY14
    Member

    hi 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!

    August 18, 2015 at 5:52 am in reply to: Not able to add header image #162719
    EmLY14
    Member

    Login using
    Tr4nsGl0ba!

    August 18, 2015 at 4:44 am in reply to: Changing widgets on home page #162706
    EmLY14
    Member

    I added several Genesis Featured Page widgets to area 3 of the home page. Ideally I would like two rows of four.

    August 15, 2015 at 3:10 am in reply to: Changing widgets on home page #162439
    EmLY14
    Member

    Thanks 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?

    September 3, 2014 at 7:42 am in reply to: Adding home-middle widgets #122564
    EmLY14
    Member

    I have fixed that last one myself. It has worked thank you genwrock for your help and supplying the code.

    September 3, 2014 at 7:40 am in reply to: Adding home-middle widgets #122563
    EmLY14
    Member

    It 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

    September 3, 2014 at 7:27 am in reply to: Adding home-middle widgets #122559
    EmLY14
    Member

    http://pastebin.com/HDkw62Bz

    September 3, 2014 at 7:10 am in reply to: Adding home-middle widgets #122557
    EmLY14
    Member

    Genwrock

    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

    September 3, 2014 at 4:42 am in reply to: Adding home-middle widgets #122546
    EmLY14
    Member

    pastebin link - http://pastebin.com/vTsKvYSe

    Let me know if you need anything else, thank you.

    February 10, 2014 at 10:58 am in reply to: Links in Footers #89683
    EmLY14
    Member

    Thank you Ryan

    February 10, 2014 at 9:00 am in reply to: Tweaking the Style Sheet #89670
    EmLY14
    Member

    Do 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
    E

    February 10, 2014 at 8:59 am in reply to: Tweaking the Style Sheet #89669
    EmLY14
    Member

    Thank you both this worked!

  • Author
    Posts
Viewing 19 posts - 1 through 19 (of 19 total)

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble