0
Welcome Guest! Login
0 items Join Now

SOLVED Adding a Custom Stylesheet

    • hasan's Avatar
    • hasan
    • Sr. Rocketeer
    • Posts: 129
    • Thanks: 0

    SOLVED Adding a Custom Stylesheet

    Posted 9 years 6 months ago
    • hi i have problem with my custom style when i want to edit any code nothing happened


      like thes code

      #k2Container.itemListView .itemList #itemListLeading h3 {
      font-family: 'NovecentoBold',Helvetica,Arial,sans-serif;
      font-size: 1.8em;
      font-weight: normal;
      line-height: 1.6em;
      }
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Adding a Custom Stylesheet

    Posted 9 years 6 months ago
    • Could you please post a URL to your site (this can be done in the secure area tab if you prefer) so we can look for you. Without a link to page where the problem is on your site it is quite hard for us to provide the best solution due to so many variables. We try to provide file names and line numbers for code changes and if changes have already been made then our advice may be incorrect.

      This is how to create a custom CSS compatible with Gantry 4...

      Simply create a file called "<TEMPLATENAME>-custom.css" and put this file in the CSS folder of the template (where <TEMPLATENAME> is the name of the template as seen in template manager e.g. rt_fracture). GANTRY4 will automatically load this CSS file. If you wish, you can also have browser specific files by appending, for example, "-ie9" making the filename "<TEMPLATENAME>-custom-ie9.css"

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • hasan's Avatar
    • hasan
    • Sr. Rocketeer
    • Posts: 129
    • Thanks: 0

    Re: SOLVED Adding a Custom Stylesheet

    Posted 9 years 6 months ago
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Adding a Custom Stylesheet

    Posted 9 years 6 months ago
    • Please turn off compressors before asking for help in forum and clear server cache so that we can see the code proper. In this case - JCH_OPTIMIZE.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • hasan's Avatar
    • hasan
    • Sr. Rocketeer
    • Posts: 129
    • Thanks: 0

    Re: SOLVED Adding a Custom Stylesheet

    Posted 9 years 6 months ago
    • im very sory i turn it off
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Adding a Custom Stylesheet

    Posted 9 years 6 months ago
    • You custom CSS file is completely empty? http://aurakeffect.net/templates/rt_oculus/css/rt_oculus-custom.css

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • hasan's Avatar
    • hasan
    • Sr. Rocketeer
    • Posts: 129
    • Thanks: 0

    Re: SOLVED Adding a Custom Stylesheet

    Posted 9 years 6 months ago
    • yes i know i already empty it i just want to add this code many time but nothing happen


      #k2Container.itemListView .itemList #itemListLeading h3 {
      font-family: 'NovecentoBold',Helvetica,Arial,sans-serif;
      font-size: 1.8em;
      font-weight: normal;
      line-height: 1.6em;
      }
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED Adding a Custom Stylesheet

    Posted 9 years 6 months ago
    • I suggest something like

      #k2Container.itemListView .itemList #itemListLeading h3 a {
      font-family: 'NovecentoBold',Helvetica,Arial,sans-serif;
      font-size: 1.8em;
      font-weight: normal;
      line-height: 1.6em;
      }


      but I can't really see that your loading 'NovecentoBold' at all ...
    • Last Edit: 9 years 6 months ago by Henning.
    • The following users have thanked you: MrT

    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Adding a Custom Stylesheet

    Posted 9 years 6 months ago
    • I'd suggest that you need a little more CSS specifity:
      body div#k2Container.itemListView .itemList #itemListLeading h3 {
           font-family: "NovecentoBold",Helvetica,Arial,sans-serif;
           font-size: 1.8em;
           font-weight: normal;
           line-height: 1.6em;
           margin: 0px 0px 5px;
           padding: 0px;
      }

      But as Henning quite rightly said - I can't see where you're loading that font either?

      Regards, Mark.
    • Last Edit: 9 years 6 months ago by MrT.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • hasan's Avatar
    • hasan
    • Sr. Rocketeer
    • Posts: 129
    • Thanks: 0

    Re: SOLVED Adding a Custom Stylesheet

    Posted 9 years 6 months ago
    • thanks

Time to create page: 0.042 seconds