Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1282035
How to create Custom Style
Closed

Comments

  • Monimedia started the conversation

    Hi Support,

    Is it possible to create a custom "Style" for News & Blog Settings?

    Do you have any example code snippet for this?

  •  7,092
    Oliver replied

    HI!

    Are you planning to update the theme?

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • Monimedia replied

    Hi Gregor,

    I created a subtheme of theGem theme, I want to create a custom style to fit my project requirements.

    I was thinking if I there is an Action or Filter I can put on the my child theme's function.php to add my custom style.

    Or maybe I customise any of the existing "Styles", and change its template file?

  •  7,092
    Oliver replied

    HI!

    Sorry, it's not simple to add new style via filter, more simple is to create the copy of this shortcode in the child theme (Functions.php) some hints:

    For adding the new style you need to edit:

    thegem_news_shortcode

    /wp-content/plugins/thegem-elements/inc/shortcodes/shortcodes.php

    in the line 4407 can add it for VC

    The shorcode code you can see in the line 1792

    Pls. note if you are planning to modify this file, your revisions will be removed after the gem elemets plugin update. So the most simple way is to edit existing style. 

    Templates you can see here:

    /wp-content/themes/thegem/gem-templates/blog

    For the safety update just copy the file which you need to change to the child theme with the same path. 

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver