Archived topic
How to add review bar to header
3 replies · Started by John on January 6, 2020
I am using review software for my company but i cant seem to add the code to website so the review bar shows in my heqader of my website. Im using navigation bar as header so i disbaled the reql header because it looks ugly and big. How or where can i add the code so it shows in the menu header?
This is code for bar widget for review software:
<!-- Feedback Company Widget (start) -->
<script type="text/javascript" id="__fbcw__cd8b733d-1604-4e2c-9a94-efa80c99c21f">
"use strict";!function(){
window.FeedbackCompanyWidgets=window.FeedbackCompanyWidgets||{queue:[],loaders:[
]};var options={uuid:"cd8b733d-1604-4e2c-9a94-efa80c99c21f",version:"1.2.1",prefix:""};if(
void 0===window.FeedbackCompanyWidget){if(
window.FeedbackCompanyWidgets.queue.push(options),!document.getElementById(
"__fbcw_FeedbackCompanyWidget")){var scriptTag=document.createElement("script")
;scriptTag.onload=function(){if(window.FeedbackCompanyWidget)for(
;0<window.FeedbackCompanyWidgets.queue.length;
)options=window.FeedbackCompanyWidgets.queue.pop(),
window.FeedbackCompanyWidgets.loaders.push(
new window.FeedbackCompanyWidgetLoader(options))},
scriptTag.id="__fbcw_FeedbackCompanyWidget",
scriptTag.src="https://www.feedbackcompany.com/includes/widgets/feedback-company-widget.min.js"
,document.body.appendChild(scriptTag)}
}else window.FeedbackCompanyWidgets.loaders.push(
new window.FeedbackCompanyWidgetLoader(options))}();
</script>
<!-- Feedback Company Widget (end) -->
Hi there,
you can use a Hook Element to insert that code:
https://docs.generatepress.com/article/hooks-element-overview/
There is the inside_navigation hook - may require some CSS to position it but I would need to see the code in place to advise on that.
Thanks i tried this but nothing shows up. Added the code and chose inside navigation and tried afternoon er logo and tried alot of different options like excecute php and rules site wide or only front page but the bar wont show.
Can you link me to the documentation regarding adding that code?