WordPress.org

Ready to get started?Download WordPress

Forums

Mantra
[resolved] Button? (7 posts)

  1. SamWhatley
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 8 months ago #

    How do you change the colours of the buttons?

  6. theZedt
    Member
    Posted 8 months 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
    Member
    Posted 8 months ago #

    Yeah, I figured it out, thanks though.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags