reply

Home Forums Responsive Themes Directory Theme Transform "custom field" text link to buttons Reply To: Transform "custom field" text link to buttons

  • JamesD
    JamesD
    May 9, 2019 at 4:49 am

    Hello Vivian,
    The easiest way would probably be adding a couple bootstrap classes.
    This snippet will add those classes to give those links the button look as well as two link attributes.

    You may need to make some adjustments to suit your needs. Try placing this with your custom javascript:
    jQuery('.fieldtype-taxonomy a').addClass('btn btn-danger btn-sm px-2 my-1').attr({"role":"button", "aria-pressed":"true"});
    Note: The px-2 adjusts the x-axis (horizontal) padding, the my-1 adjusts the y-axis (vertical) margin and the btn-danger gives it it’s color (I picked btn-danger to match your site better).

  • Copyright © 2010-2020 PremiumPress Limited.

    secure payments