The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Button? (7 posts)

  1. SamWhatley
    Posted 3 years ago #

    I LOVE the button feature. However, every time I use it, the phrase that I have linked to another page, brakes.

    For Example, I created a button for "Certification" and I've linked to another page I've made that discusses certification in detail. I've linked the word to the page and it works beautifully. And then when I add the button, it disables the link.

    Why? And whats the point of a button if it doesn't work?

    Does anyone know how to fix it?

  2. the.Zedt
    Posted 3 years ago #

    The button IS a link, so you cannot add a button over a link.
    Just write your text as you want it to appear inside the button, select it and add a button over it. Then paste the link in the "url" attribute, like:
    [mantra-button-light url="http://www.google.com/" target="_blank"]This button links to Google[/mantra-button-light]

  3. SamWhatley
    Posted 3 years ago #

    Thanks so much theZedt!

    But what if I'm linking to a page within the site? How would I do that?

  4. the.Zedt
    Posted 3 years ago #

    To be more explicit, the "button" function does not work like the built-in link function. There's no automatic way to choose or type in the link.
    After you click the "button" button :) you need to manually type in the URL to (whatever) page you want that button to link to, as the url= parameter of the shortcode.

    As in the example I gave you before,
    [mantra-button-light url="http://www.yourwebsitehere.com/some-page-on-your-website/" target="_blank"]Link to a page[/mantra-button-light]

    To get the URL and paste it in the url= parameter, you navigate to the page you want to link to (or see it in the Pages list) and copy its URL/link.

    You can change target="_blank" to target="_self" to make the button open the link in the same page.

  5. Deena
    Posted 2 years ago #

    How do you change the colours of the buttons?

  6. theZedt.Cryout
    Posted 2 years ago #

    The 'light' and 'dark' buttons have predefined colours.
    The 'colour' button has a definable background colour.
    These are detailed in the theme shortcodes demo page.

  7. Deena
    Posted 2 years ago #

    Yeah, I figured it out, thanks though.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic