• I use the Insert Headers and Footers plugin to insert Google remarketing code into the header of my website. However, this creates a black bar about 20 pixels high across the top of every web page. If I move the remarketing code into the footer, the black bar moves to the bottom of every page. The issue appears to be with the remarketing code because if I simply put <!– This Is A Test –> in the header, the black bar does not appear. However, since this plugin is often used for inserting Google remarketing code into the header of a website, I’m hoping some of you have run into the same issue and have a solution. I found an article that said to wrap the Google remarketing code in a div with display:none. That seems to work, but I don’t know if it is a preferred method. The website is at https://www.bankersinsurance.net, is on WordPress 4.8, utilizes the Unicon theme.

    Any suggestions? Thank you for your time and kind consideration!

Viewing 1 replies (of 1 total)
  • Hello,

    The website is https://www.vidualiz.com
    I am having the same problem. Whenever I have “Insert Headers and Footers” plugin activated …. a black bar with code shows up at the top of each of my web pages…you can only see the code if you highlight it.

    ar ajaxRevslider; jQuery(document).ready(function() { // CUSTOM AJAX CONTENT LOADING FUNCTION ajaxRevslider = function(obj) { // obj.type : Post Type // obj.id : ID of Content to Load // obj.aspectratio : The Aspect Ratio of the Container / Media // obj.selector : The Container Selector where the Content of Ajax will be injected. It is done via the Essential Grid on Return of Content var content = “”; data = {}; data.action = ‘revslider_ajax_call_front’; data.client_action = ‘get_slider_html’; data.token = ‘0301d98b0c’; data.type = obj.type; data.id = obj.id; data.aspectratio = obj.aspectratio; // SYNC AJAX REQUEST jQuery.ajax({ type:”post”, url:”https://www.vidualiz.com/wp-admin/admin-ajax.php&#8221;, dataType: ‘json’, data:data, async:false, success: function(ret, textStatus, XMLHttpRequest) { if(ret.success == true) content = ret.data; }, error: function(e) { console.log(e); } }); // FIRST RETURN THE CONTENT WHEN IT IS LOADED !! return content; }; // CUSTOM AJAX FUNCTION TO REMOVE THE SLIDER var ajaxRemoveRevslider = function(obj) { return jQuery(obj.selector+” .rev_slider”).revkill(); }; // EXTEND THE AJAX CONTENT LOADING TYPES WITH TYPE AND FUNCTION var extendessential = setInterval(function() { if (jQuery.fn.tpessential != undefined) { clearInterval(extendessential); if(typeof(jQuery.fn.tpessential.defaults) !== ‘undefined’) { jQuery.fn.tpessential.defaults.ajaxTypes.push({type:”revslider”,func:ajaxRevslider,killfunc:ajaxRemoveRevslider,openAnimationSpeed:0.3}); // type: Name of the Post to load via Ajax into the Essential Grid Ajax Container // func: the Function Name which is Called once the Item with the Post Type has been clicked // killfunc: function to kill in case the Ajax Window going to be removed (before Remove function ! // openAnimationSpeed: how quick the Ajax Content window should be animated (default is 0.3) } } },30); });

    Do you have any suggestions? The only thing that fixes it is deactivating the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Black bar at top of every web page’ is closed to new replies.