Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #863748

    Hi, how can I add new heading style?

    https://image.prntscr.com/image/vmTEAt94RveZO24F2qkoOQ.png

    It is possible through UI? If not, how to extend it in Enfold Child theme through PHP?

    #864221

    Hey goldenplanet,

    You can select different settings for each element. How do you want to extend the theme through PHP?

    Best regards,
    Rikard

    #864250

    I figured out how to do it thanks to that blog post:

    I had to replace the Special Heading shortcode (that is a component of LayoutBuilder) in the Enfold Child theme.

    Added the shortcodes directory loader into functions.php and copy/pasted the content of heading.php
    from: enfold/config-templatebuilder/avia-shortcodes/heading.php
    to: enfold-child/shortcodes/heading.php

    In the style item of the av_heading shortcode I’ve added the new style:
    https://image.prntscr.com/image/VXjuQJ1YQYCNQbNLAB5Ehg.png

    I still hope there’s some more sane way to do it:
    – through WordPress theme’s UI (Enfold child theme UI)
    – extending properties instead of overwriting the whole shortcode php file

    #864452

    Hi,

    Thanks for the feedback, though I’m still not sure what you want to accomplish. Could you try to explain that first please?

    Best regards,
    Rikard

    #864465

    Hi,

    So, there’s a wordpress theme called Enfold. It has it’s own LayoutBuilder interface.
    There’s a tabbed toolbar which contains a Special Heading shortcode with a Heading Style property.
    It’s depicted on that screenshot: https://image.prntscr.com/image/vmTEAt94RveZO24F2qkoOQ.png

    It has a list of 4 hardcoded preset options for Special Heading.
    I needed to add 5th preset to that list
    Let me know if I didn’t explained well

    #864836

    Hi goldenplanet,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Victoria

    #865194

    Hi Victoria, I’m a developer.
    Is there a way to contact developers?
    Perhaps you didn’t notice that I wrote “I figured out how to do it”

    #866082

    Hi,

    Glad that you figured it out. Unfortunately, you can’t add another style with hooks or filters yet. You have to modify the shortcode file or override it in a child theme.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.