-
AuthorPosts
-
November 11, 2022 at 10:53 am #1372185
Hi,
I want to create a fixed element that has a graphic showing my clients website review and a button to link to the review.
I want this to sit on a fixed position above the footer on every page.
What is the best way to do this? Create a widget? If so, how isn it done.
Thanks
November 11, 2022 at 2:00 pm #1372208Hey woogie07,
To add a custom widget area above the footer go to Appearance > Widgets > Enfold Custom Widget Area and create a new widget area with the name “abovefooter” and then go to Appearance > Editor and edit functions.php file and add following code:add_action('ava_before_footer','avia_above_footer'); function avia_above_footer(){ dynamic_sidebar( 'abovefooter' ); }
then you can add your elements inside the new widget area.
Best regards,
MikeNovember 11, 2022 at 4:19 pm #1372228Thanks,
Will the php function be lost if a theme update is done?
I do not run a child theme at the moment. If I do, is the code better added in the child theme?
Thanks
MarcusNovember 11, 2022 at 4:28 pm #1372232Hi Marcus,
Will the php function be lost if a theme update is done?
Yes
is the code better added in the child theme?
Yes, definitely. Please refer to this post – https://kriesi.at/documentation/enfold/child-theme/ and switch to child theme and add the code in functions.php file of your child theme :)
Best regards,
YigitNovember 11, 2022 at 9:19 pm #1372263Hi,
I have located the code that displays the Google reviews for my client. I will create a button to ‘View Reviews’
Do you know how to display the lightbox area/or Google Reviews area only on the private content?
eg Can I somehow use the # part as the url for the button?Thanks
November 12, 2022 at 1:57 pm #1372294Hi,
I tried the URL that you posted and it went to the google search page and showed the review popup, so I guess you could use that URL for your button, but I’m not sure if it is a good idea because the URL has tracking code for your specific search.
This article recommends going to your Google Business Profile and get your Google review link:
then use this link in your button.
If you want to display your Google reviews try the Plugin for Google Reviews, I have not tried it or any other google review plugins.Best regards,
MikeNovember 12, 2022 at 2:05 pm #1372295Thanks,
I have a link already for encouraging people to leave a review.
I didn’t want to use a plugin to display reviews, ideally a link to see them in the reviews lightbox or the GMB page.
Thanks
November 12, 2022 at 2:35 pm #1372298 -
AuthorPosts
- The topic ‘Creating a widget that sits above the footer’ is closed to new replies.