How can we help?

If you are looking for support for our Poka theme, this is the place!

Home Forums Poka v2 support [btn href=””] color?

This topic contains 4 replies, has 2 voices, and was last updated by  spielo 5 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1901

    spielo
    Participant

    How can i change individuell color for buttons,

    [ btn href=”….” ] ?class=”red”?

    #1918

    admin
    Keymaster

    Hi,

    Currently there is no support for changing each button color.
    You can create a custom element :
    <a class="btn btn--blue btn--yourcolor" href="#">Link</a>
    and create a new style in your styles for .btn–yourcolor

    #2073

    spielo
    Participant

    Hi, works ok. How can i setup that all btn buttons open in new tab like target=”_blanc”

    Regards

    #2074

    admin
    Keymaster

    Hi!

    If you are talking about the shortcode [btn] you can change it by overriding it to your child theme.
    For example:

        function btn_sc($atts, $content = null) {
            extract(shortcode_atts(array(
                "href" => ''
            ), $atts));
    
            return '<a class="btn btn--blue" href="'.$href.'" target="_blank">'.$content.'</a>';
        }
    #2076

    spielo
    Participant

    Thanks, exact what i need

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.