I would like to add share buttons on a custom page similar to the Add2Any code used in UNA (module's View Actions menu so that it can open in a pop-up) but in Pages > Add Blocks > System, there is no share block.
Well on a custom page you can add an html block or a raw script block, and the paste in the Add2Any code. I have done this before. Just locate the block where you want to add the sharing buttons. Beneath the main text area or in a sidebar area. The raw code block might be better; it has been a while since I have done this so try both blocks and see which does the trick.
Hello, @OneEagle Do you need it in the "menu" or just on the page as shown in the screen? You can simply put it in the RAW block on the page. I do not recommend editing the UNA code due to possible updates.
@Dannie Jackson Thanks. I knew about that one. So I ended up pasting the Add2Any code in a raw block. But what I was looking for was to place it into the menu so that it can open in a pop-up, like it is done here in UNA.
@PavelS Thanks for your reply. I needed it in the menu the way it's done here in UNA. I already knew about the Add2Any code in the raw block, which is what I ended up doing.
I thought it could easily be added as an item into the View Action menu, only to realize that custom pages don't have a module's View Action menu. @LeonidS
For the the custom page the special button from the View Items action hasn't a big sense. So dear @PavelS (thnx, mate!) is right you'd better to create the custom block with the link's code within:
<a href="javascript:void(0)" onclick="oBxDolPage.share(this, 'URL of the curent page')">Link name</a>
I am just caught up in some serious work, but let me know if you didn't come right...
Well on a custom page you can add an html block or a raw script block, and the paste in the Add2Any code. I have done this before. Just locate the block where you want to add the sharing buttons. Beneath the main text area or in a sidebar area. The raw code block might be better; it has been a while since I have done this so try both blocks and see which does the trick.
Hello, @OneEagle Do you need it in the "menu" or just on the page as shown in the screen? You can simply put it in the RAW block on the page. I do not recommend editing the UNA code due to possible updates.
<div class="a2a_kit a2a_kit_size_32 a2a_default_style a2a_follow"> <a class="a2a_button_facebook" href="https://www.facebook.com/"></a> <a class="a2a_button_instagram" href="https://www.instagram.com/"></a> <a class="a2a_button_mastodon" href="https://mastodon.social/"></a> <a class="a2a_button_tiktok" href="https://www.tiktok.com/"></a> <a class="a2a_button_discord" href="https://discord.com/"></a> <a class="a2a_button_steam" href="https://steamcommunity.com/"></a> <a class="a2a_button_twitch" href="https://www.twitch.tv/"></a> <a class="a2a_button_pinterest" href="https://www.pinterest.com/"></a> <a class="a2a_button_linkedin" href="https://www.linkedin.com/"></a> <a class="a2a_button_youtube" href="https://www.youtube.com/"></a> <a class="a2a_button_vimeo" href="https://vimeo.com/"></a> <a class="a2a_button_github" href="https://github.com/"></a> <a class="a2a_button_snapchat" href="https://www.snapchat.com/"></a> <a class="a2a_button_x" href="https://x.com/"></a> <a class="a2a_button_flickr" href="https://www.flickr.com/photos/flickr"></a> <a class="a2a_button_google_maps" href="https://goo.gl/"></a> <a class="a2a_button_soundcloud" href="https://soundcloud.com/"></a> <a class="a2a_button_spotify" href="https://open.spotify.com/artist/"></a> <a class="a2a_button_apple_music" href="https://music.apple.com/"></a> </div> <script async src="https://static.addtoany.com/menu/page.js"></script>That doesn't include WhatsApp. Can it be added?
of course, you can add whatever you want-- https://www.addtoany.com/services/
<a class="a2a_button_whatsapp" href="https://wa.me/"></a>@Dannie Jackson Thanks. I knew about that one. So I ended up pasting the Add2Any code in a raw block. But what I was looking for was to place it into the menu so that it can open in a pop-up, like it is done here in UNA.
@PavelS Thanks for your reply. I needed it in the menu the way it's done here in UNA. I already knew about the Add2Any code in the raw block, which is what I ended up doing.
I thought it could easily be added as an item into the View Action menu, only to realize that custom pages don't have a module's View Action menu. @LeonidS
I understand, in that case I think you could make a modul Add2Any that you install and then see in the Pages--Add blocks
Hello @OneEagle !
For the the custom page the special button from the View Items action hasn't a big sense. So dear @PavelS (thnx, mate!) is right you'd better to create the custom block with the link's code within:
<a href="javascript:void(0)" onclick="oBxDolPage.share(this, 'URL of the curent page')">Link name</a>