Post by tastiertreats » Sun Apr 28, 2019 8:05 pm

I am looking to add a widget to my "About us" information page, this widget has been produced by the food standards agency (I run a food establishment and I am now expanding to online sales) This widget enables customers to click on the name, and get directed straight to the food standards agency website, and it also contains an image of the rating for our premesis. The code they have advised us to use is

Code: Select all

<script type="text/javascript" src="http://widget.ratings.food.gov.uk/fhrswidget.jss?FHRSID=1063669&Culture=en-GB">
</script>
I am unable to get this show as intended. The direct link to our food standards agency page, if it is any help is https://ratings.food.gov.uk/business/en ... igh-Street

Does anyone have any information how I can add this to the page mentioned above.

Newbie

Posts

Joined
Sun Apr 28, 2019 7:58 pm

Post by DigitCart » Sun Apr 28, 2019 9:15 pm

Hi
You can add it via Html content module: admin panel / extensions / extensions / modules / html content
and then assign it to the information layout: admin panel / design / layouts / information
this will show your html content in all information pages.

if you want to show it in one information page only,
create a new layout: admin panel / design / layouts / add / your-layout-name
edit your information page: admin panel / catalog / information / edit / design / layout override / select your-layout-name
now assign the html content module to your new layout: admin panel / design / layouts / your-layout-name
Last edited by DigitCart on Mon Apr 29, 2019 12:28 am, edited 1 time in total.

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by letxobnav » Mon Apr 29, 2019 12:22 am

you can just go to catalog->information and edit the about us entry in code-view and copy-paste that js in the location you like.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan
Who is online

Users browsing this forum: No registered users and 18 guests