Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted January 4, 20232 yr Hi there, Is it possible to add a button to a text block (using the rich text WYSIWYG editor or other)? By that I mean one of the standard system buttons to make it stand out from the text and look like the rest of the site. Thanks.
January 4, 20232 yr Yes, but you would need to manually create a custom button with custom HTML for that. The CSS classes are listed here:
January 5, 20232 yr Author Thanks @opentype ... I'm really sorry for being a bit dim here. Could you give me some pointers on how to manually create the custom HTML for this? Do I edit the template somewhere? And once I've created the custom HTML ... how do I then put that into the text block?
January 5, 20232 yr Wrong type of button, Marc. Do the following to be able to add a button to Editor content... Ensure that your group has the 'Can edit HTML?' setting enabled In the Editor, you'll now have a 'Source' button - click it to edit the source html of the content Here's the code for a button that is actually a URL link <a class="ipsButton ipsButton_medium ipsButton_important" href="URL">BUTTON</a> Sizes/styles here
January 5, 20232 yr 10 minutes ago, Nathan Explosion said: Wrong type of button, Marc. Not necessarily. I was also thinking of adding an editor button to create these types of button. Can just be set up once and then it can be used without messing with the source code every time.
January 5, 20232 yr 2 minutes ago, opentype said: Not necessarily. I was also thinking of adding an editor button to create these types of button. Can just be set up once and then it can be used without messing with the source code every time. Oh, that would be the logical progression from there yes. But you still need to know what needs to put in hence my provision of how to do it in the Editor first of all. Edited January 5, 20232 yr by Nathan Explosion
January 5, 20232 yr 30 minutes ago, Nathan Explosion said: Wrong type of button, Marc. It was actually in response to "how do I then put that into the text block?". Which if its something you wish to just click and add, would be done with the editor