• Customer

    custom.css does not included

    Posted by: MykolaFedchyk Apr 5, 2016 at 14:16 (9 year ago)
    Today I put some overrides in classes (actually I tried to make a price font bold on a Product Detailed Page).
    I put my changes to custom.css - a commonly used file to put own changes in the theme, and I expect that this file will be used to override default styles. Than I seen that no changes happen on a page, and analyzing page source I found that custom.css does not included to any page.

    Confusion.

    In the theme changelog_supershop.txt file I found a record about custom.css
    ===========================================
    Supper Shop Theme(22.07.2015)
    ===========================================
    ***** Released version 2.5.8 *****
    1. Fixed: Add to cart on mobile
    2. Added: custom.css

    Files:
    ../themes/supershop/css/global.css
    ../themes/supershop/css/custom.css
    ../themes/supershop/header.tpl

    Also I seen that any css file should be included by this code in the header.tpl file
    {if isset($css_files)}
    {foreach from=$css_files key=css_uri item=media}

    {/foreach}
    {/if}

    Next I made a hack in header.tpl adding direct link (I found it recommended on prestashop forum)

    and that piece of code now looks like below:
    {if isset($css_files)}^M
    {foreach from=$css_files key=css_uri item=media}^M
    ^M
    {/foreach}^M
    then I clean cache and reload my page, and... Magic! It works!

    Is there a functional regression? If yes, say hello to QA team.
    Anyway look forward for theme updates and new version.

    P.S.: Is the changelog_supershop.txt placed in proper folder supershop/js ? I expect to see it in top theme folder (supershop/)

  • Customer

    Posted by: MykolaFedchyk, Apr 5, 2016 at 14:19 (9 year ago)

    Well I see that html tags has been filtered on server side, so my code samples are bit broken - sad, but anyway I guess that theme author should found this code places in theme and understand my workaround.
  • Customer

    Posted by: MykolaFedchyk, Apr 5, 2016 at 14:23 (9 year ago)


    {if isset($css_files)}^M
    {foreach from=$css_files key=css_uri item=media}^M
    ^M
    {/foreach}^M

    {/if}^M
  • Customer

    Posted by: MykolaFedchyk, Apr 5, 2016 at 14:33 (9 year ago)

    Because of html tags restriction I made and attach a diff file. (yeah, zipped because of attached file restrictions :) )
  • Admin

    Posted by: james, Apr 7, 2016 at 13:31 (9 year ago)

    Hi mate,

    It is midnight here. I will discuss with my team then reply to you.

    Many thanks for your patience!
    Cheers
  • Customer

    Posted by: MykolaFedchyk, Apr 7, 2016 at 16:12 (9 year ago)

    Hello James!
    I see there is an yet another problem with styles that included (by modules?) as tags "style type="text/css" inside of HTML and it is happen after all external css inclusions (I mean after link rel="stylesheet" href=).
    As result, even I try to redefine one style in custom.css, it will be overridden by this embedded css
    Sad!
  • Customer

    Posted by: MykolaFedchyk, Apr 11, 2016 at 13:13 (9 year ago)

    Hello Support!

    How can I safely customize product price weigh and color?
    For example, I wish to set price in bold.

INSTALLATION SERVICE

Theme Installation: $49. Pay now

CUSTOMIZED SERVICES

Use our expert service to turn your ideas into reality. Please send an email to kutethemes@gmail.com to provide the more detailed information. Thanks!

WORKING TIME

Our support service works from Monday to Friday.
Mean time (GMT +7):
+ 7:30 - 11:30 AM
+ 1:30 - 5:30 PM
We will try to answer all the questions within 24 hours and solve them as quickly as possible