• Resolved Woodcock02

    (@woodcock02)


    Hi I am new to all this – but am getting there !!
    I am building a shop with Storefront in the Deli theme, but the drop down for sorting (by price or popularity etc etc) is in TIMES, when the rest of my site is SanSerif – very odd – how do I change that ??

    Also I find the price with the big dark ticket around it a bit obtrusive in the product view – is it possible to move it to the bottom (underneath the text for the product) – or change the colour ??

    My site is wildlifewatercolourpaintings.co.uk

    Thanks in advance
    Colin

Viewing 15 replies - 1 through 15 (of 21 total)
  • Hey,

    The ‘sorting’ issue should be fixed in the latest version of Storefront. Please update that to resolve.

    You can move the price on the single page with a snippet like this:

    add_action( 'init', 'jk_move_price' );
    function jk_move_price() {
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 30 );
    }

    I’d recommend adding that snippet to our Theme Customisations plugin: https://github.com/woothemes/theme-customisations

    Cheers

    Thread Starter Woodcock02

    (@woodcock02)

    THANKS !
    I was getting a bit fed up of using “Edit CSS” and “Custom CSS” will this plugin remove the need for both ??

    AND

    Is it free ?

    Thanks in advance
    Colin

    Thread Starter Woodcock02

    (@woodcock02)

    Ignore previous post ??

    I downloaded that plugin and added the snippet (just above – }//End Class)

    Is that the correct place to add snippets ??

    It didn’t move the price – so guess not ?

    Cheers
    Colin

    Thread Starter Woodcock02

    (@woodcock02)

    VERY COOL !

    I got a fatal error putting it where I did – didn’t spot that the first time – so I added it above “Initialise Plugin”

    AND IT WORKS

    Thank you so much, I am hoping that this will remove the need for “EditCSS and CustomCSS”

    Hey,

    Read the readme of that plugin, it explains everything there.

    Pasting here for reference:

    * Add any CSS snippets to custom/style.css.
    * Add any PHP snippets to custom/functions.php.
    * Activate the plugin.

    Cheers

    Thread Starter Woodcock02

    (@woodcock02)

    Ha – thanks !

    I did read it when I installed it, but must have gone out of my head after all the updating to the new web site. Building a new one in WordPress (old one is https://www.wildart.co.uk ) so a lot of work ??

    Thanks for your help
    kind regards
    Colin

    Thread Starter Woodcock02

    (@woodcock02)

    HELP ME PLEASE

    Something has gone wrong with my plugin, I get this message on ANY page on my site – its down !!

    Parse error: syntax error, unexpected T_STRING in /var/sites/w/wildlifewatercolourpaintings.co.uk/public_html/wp-content/plugins/theme-customisations-master/custom/functions.php on line 9

    How do I get into the admin now ??

    Please help
    Colin

    @woodcock02 make a backup then delete the plugin via FTP.

    Please paste the contents of your theme-customisations-master/custom/functions.php file and I’ll take a look.

    Thread Starter Woodcock02

    (@woodcock02)

    Hi

    Uh ? I am new to all this – how exactly do I create a backup if I cannot even see my site – or – the admin panel ??

    Amazingly fast reply – thanks
    Cheers
    Colin

    Thread Starter Woodcock02

    (@woodcock02)

    OK, my host has deleted the plugin and I am now up and running – but they suggested I check compatibility.

    I am running WordPress 4.3 Beta 3 July15th – using the Storefront Deli theme v 1.0.5

    Hope your plugin is OK, as I find it indispensable. Bit strange that it should take down the whole site – all my other ones deactivate if there is a problem with the code

    Regards
    Colin

    Thread Starter Woodcock02

    (@woodcock02)

    “Please paste the contents of your theme-customisations-“

    Hi James

    The site has crashed again – I added some code to the .php file and clicked update and the whole lot has gone down again. I think (embarrassed) that I may have added CSS into the php file by mistake – I keep forgetting to select the right file in the right hand column to edit

    Why does it not exit and de-activate like others, surely it should not bring the whole site down like this ??

    :-((

    Thread Starter Woodcock02

    (@woodcock02)

    Hi James
    Please tell me which file this goes in and where ! When I put it in the .css file it says file inactive at the top, in fact I cannot ever get it to be active. How do I send it active ??

    – if I put it in the .php file it crashes and the plugin is inactivated.
    Cheers
    Colin

    “You can move the price on the single page with a snippet like this:

    add_action( ‘init’, ‘jk_move_price’ );
    function jk_move_price() {
    remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_price’, 10 );
    add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_price’, 30 );
    }
    I’d recommend adding that snippet to our Theme Customisations plugin: https://github.com/woothemes/theme-customisations

    Cheers”

    It goes in the functions.php file, anywhere after line 7.

    Thread Starter Woodcock02

    (@woodcock02)

    THANK YOU

    Off to an exhibition so will see on my return
    cheers

    Thread Starter Woodcock02

    (@woodcock02)

    HELP !

    Parse error: syntax error, unexpected ‘}’ in /var/sites/w/wildlifewatercolourpaintings.co.uk/public_html/wp-content/plugins/theme-customisations-master/custom/functions.php on line 8

    What am I doing wrong ?????????

    This is the file content of functions.php, before it crashes.
    hope you can help
    Colin

    <?php
    if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly

    /**
    * functions.php
    * Add PHP snippets here
    */
    add_action( 'init', 'jk_move_price' );
    function jk_move_price() {
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 30 );
    }

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Strange font in shop drop down menu, DELI theme’ is closed to new replies.