Global Block Has Disappeared in X

I was just checking some pages of our website and the Global Block which is normally on a number of pages is simply missing. The shortcode is there, but no Global Block. When I go to the Global Blocks section, it says there are none.

The code now showing in its place is [cs_global_blocks block=“10262”]

How is this possible, as it has not been deleted at all, but now does not exist?

Regards

Oh, the pages it affects start on the /food-tours/ page and all the ones accessed from that page

Hey @guybower1,

We don’t have reports of Global Blocks mysteriously disappearing so there could be something specific like a 3rd party plugin in your server and/or WordPress setup that deleted the global block.

In any event though, we can do nothing to restore the deleted global block so you’ll need to contact your web host to restore a backup of your WP files and database.

Once your site is restored, please monitor your website activities including automatic processes like database optimizations done by 3rd party plugins and your web host.

If you don’t have a backup or don’t want to restore from backup, you will need to rebuild the global block.

Please also always ensure that both X and Cornerstone are updated to the latest version. Right now, you only have Cornerstone updated. Please update X. This is not the cause as I have tested your current setup and it doesn’t delete the previous Global Blocks. This is just a best practice to prevent more issues.

Thanks.

cheers Christian

Yes an odd one. I hadn’t looked at the relevant pages for some time, so no real idea what may have done it.

Thanks so much for your reply. Just in the process of rebuilding it now. May I ask a quick question regarding that?

I can’t recall how it was originally constructed, but the block was 2 booking agencies banners for hotel bookings. What is the best element to put them in so I can get them to respond to various screen widths?

Here is the sort of code I am talking about:

<div id="adgshp909915700"></div>
<script type="text/javascript" src="//cdn0.agoda.net/images/sherpa/js/init-dynamic_v8.min.js"></script><script type="text/javascript">
var stg = new Object(); stg.crt="5970568103243";stg.version="1.05"; stg.id=stg.name="adgshp909915700"; stg.Width="728px"; stg.Height="90px";stg.RefKey="yYmmba6ny5f7KHYjvMH+ag==";stg.AutoScrollSpeed=5000;stg.AutoScrollToggle=true;stg.SearchboxShow=false;stg.DiscountedOnly=false;stg.Layout="widedynamic"; stg.Language="en-us";stg.ApiKey="00000000-0000-0000-0000-000000000000";stg.Cid="1759773";  stg.City="17019";stg.Currency="THB";stg.OverideConf=false; new AgdDynamic('adgshp909915700').initialize(stg);
</script>

cheers

Hi @guybower1,

You can paste that code on a Content Area element or a Raw Content element, it will handle its responsive behaviour itself. That is an external element, we can not apply a custom CSS to that.

Thanks,

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.