Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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

    #1372208

    Hey 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,
    Mike

    #1372228

    Thanks,

    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
    Marcus

    #1372232

    Hi 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,
    Yigit

    #1372263

    Hi,

    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

    #1372294

    Hi,
    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:
    2022-11-12_001.png
    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,
    Mike

    #1372295

    Thanks,

    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

    #1372298

    Hi,
    Ok, then I guess the link you have is your best option.
    Unless there is anything else we can assist with on this issue, shall we close this then?

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Creating a widget that sits above the footer’ is closed to new replies.