EvanDC Posted January 4, 2023 Share Posted January 4, 2023 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. Link to comment Share on other sites More sharing options...
opentype Posted January 4, 2023 Share Posted January 4, 2023 Yes, but you would need to manually create a custom button with custom HTML for that. The CSS classes are listed here: EvanDC 1 Link to comment Share on other sites More sharing options...
EvanDC Posted January 5, 2023 Author Share Posted January 5, 2023 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? Link to comment Share on other sites More sharing options...
Marc Posted January 5, 2023 Share Posted January 5, 2023 Take a look at these 2 guides and Link to comment Share on other sites More sharing options...
Nathan Explosion Posted January 5, 2023 Share Posted January 5, 2023 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 Marc 1 Link to comment Share on other sites More sharing options...
opentype Posted January 5, 2023 Share Posted January 5, 2023 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. Marc 1 Link to comment Share on other sites More sharing options...
Nathan Explosion Posted January 5, 2023 Share Posted January 5, 2023 (edited) 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, 2023 by Nathan Explosion Marc 1 Link to comment Share on other sites More sharing options...
Marc Posted January 5, 2023 Share Posted January 5, 2023 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 Link to comment Share on other sites More sharing options...
Recommended Posts