Transform "custom field" text link to buttons

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

Discontinued - The forum content is out of date. For theme support please use our support desk here.

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

  • JamesD
    JamesD
    Super Guru 1,345 points

    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).

    May 9, 2019 at 4:49 am
  • Didn't find what you were after?

    Chat with us now

    or contact our support team