0
Welcome Guest! Login
0 items Join Now

SOLVED Content Cubes particle in Helium template

  • SOLVED Content Cubes particle in Helium template

    Posted 8 years 9 months ago
    • I would like to use some code (<br>) to style the title element of the Content Cubes Particle. Looks like that isn't possible?
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED Content Cubes particle in Helium template

    Posted 8 years 9 months ago
    • You might be better to do that with custom CSS - where exactly are you trying to add the space?

      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.

      Please do a screenshot of your problem and annotate to make it clear.

      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.
  • Re: SOLVED Content Cubes particle in Helium template

    Posted 8 years 9 months ago
    • Hi Mark, Take a look at the site. In the image you can see what I mean.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED Content Cubes particle in Helium template

    Posted 8 years 9 months ago
    • If you want to put HTML in the title then your will need to create a particle override for the contentcubes particle.

      To learn how to override a particle in Gantry 5 please see our documentation here http://docs.gantry.org/gantry5/tutorials/overriding-particle-settings#overriding-particle-source-files .

      You will then need to change line 32 of the twig from
      {{ item.title|e }}

      to:
      {{ item.title|raw }}

      btw technically your should <br /> rather than just <br>

      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.
  • Re: SOLVED Content Cubes particle in Helium template

    Posted 8 years 9 months ago
    • Thank you Mark. Greetings, Chris

Time to create page: 0.098 seconds