- This topic has 25 replies, 3 voices, and was last updated 3 years, 8 months ago by
Fernando.
-
AuthorPosts
-
July 25, 2022 at 10:06 pm #2293576
Leanne
I have some social media icons above my menu, but can no longer find where to edit them.
I see an inactive widget for lightweight social icons, but my icons are still active.
I don’t have anything in the top bar widget and am not seeing the social icons in any other widget.
July 25, 2022 at 10:16 pm #2293581Fernando Customer Support
Hi Leanne,
These lightweight social icons seems to be added through your Header Element possibly through a shortcode.
Can you check if you have a Header Element active? You can do this by hovering on Elements in the admin bar as such while view a post: https://share.getcloudapp.com/BluGdlJD
Check if you’re adding the icons from here.
For reference, you can now add Social Icons through GenerateBlocks. Example: https://www.youtube.com/watch?v=q9YyXSBpRR0
July 26, 2022 at 1:10 pm #2294436Leanne
Hi Fernando,
Thanks so much! I forgot how I was putting that together >.<
And I think it had to do with the header size/positioning as well, though I will check out the video just in case that will work for me!As this plugin is a Generate Press plugin, I wanted to ask, is there a way to add a Ko-Fi link?
I’m not seeing it on the options and don’t see a way to add a ‘other’ link.Thanks!
July 26, 2022 at 5:00 pm #2294531Leo
StaffCustomer SupportThere is no way to add a custom icon using LSI unfortunately.
You can try using the GB method as Fernando suggested above 🙂
July 26, 2022 at 6:07 pm #2294565Leanne
Thanks, Leo!
Is there a way to put the blocks inside a Element?
I have my site header in an element, and due to positioning and size, it only works as intended in the Element sectionJuly 26, 2022 at 6:39 pm #2294588Fernando Customer Support
You can add this Snippet:
function header_shortcode($atts, $content = null) { ob_start(); do_action('header_element_hook'); return ob_get_clean(); } add_shortcode('header-element-shortcode', 'header_shortcode'); add_filter( 'generate_hooks_list', function($hooks){ array_push($hooks['header']['hooks'],'header_element_hook'); return $hooks; }, 99,1 );Adding PHP reference: https://docs.generatepress.com/article/adding-php/#code-snippets
Then, add this shortcode in your Header Element
[header-element-shortcode].Now, you’ll have a
header_element_hookavailable when creating an Element.Hope this helps!
July 26, 2022 at 11:09 pm #2294712Leanne
Thanks for this! Unfortunately it’s a little above my understanding as to how to implement and where to add the icons. Would you be able to clarify a little more?
July 26, 2022 at 11:23 pm #2294720Fernando Customer Support
I see. No problem. Here’s a step-by-step:
1. Add the code above through Code Snippets plugin.
2. Add the shortcode in your Header Element as such: https://share.getcloudapp.com/ApuXW6dR
3. Create a Block Element – hook, and hook it toheader_element_hook.
4. Add the icons in the Block Element as was done in the example video above.Hope this clarifies
July 28, 2022 at 1:08 am #2295809Leanne
Thank you! I had to find the right block, but now it is there 🙂
Only question is, how can I change the opacity?It’s almost the same look as before (+ extra icon) but I can’t quite get the color opacity correct despite grabbing the same hex code.
July 28, 2022 at 1:17 am #2295815Fernando Customer Support
You can control the opacity of a color in the Button Block’s settings as such: https://share.getcloudapp.com/7Ku6llmq
Hope this clarifies!
July 28, 2022 at 1:42 am #2295834Leanne
Thanks, Fernando! I should have perhaps clarified though 🙂 as it’s at 100% but is still lighter opacity than the other – at least it’s at 100% in that slider. So I’m thinking there must be something else applying edits to it.
July 28, 2022 at 1:49 am #2295839Fernando Customer Support
The original social icons you had had
0.5opacity. Try altering your buttons to be50%transparent through the settings shown above.July 28, 2022 at 12:42 pm #2296589Leanne
Hi Fernando, thanks for checking that – the thing is they’re too light (higher percent opacity) then the previous ones already, so changing the opacity would make them even lighter 🙂
I think there is something else affecting their opacity, but I’m not sure what or where.
July 28, 2022 at 12:43 pm #2296591Leanne
*Changing the opacity to 50% would make them lighter (right now they’re set to no opacity, but they are still opaque and even lighter than the previous ones)
July 28, 2022 at 5:12 pm #2296726Fernando Customer Support
I’m still seeing only the Lightweight Social Icons from my end. Can you add the GenerateBlocks Social Icons as well so I can see them and compare?
-
AuthorPosts
- You must be logged in to reply to this topic.