Issue with blog slugs

Hi Max, I am using the blog widget and yes, the slug is present but how do I use that? Is it possible to make use of the slug to link to a single post?

2 Likes

Hi @Andy_Lamb :waving_hand:

The slugs are added to the URL, where the widget is installed, when you click on a specific post So, if you need to get a link to a specific post, just copy your website’s URL with the added slug :slightly_smiling_face:

2 Likes

I’ve tried that max, example https://walesoutdoors.co.uk/wales-travel-guide-sightseeing-in-wales and https://walesoutdoors.co.uk/blog/wales-travel-guide-sightseeing-in-wales but neither work…

2 Likes

Unfortunately, I couldn’t open these pages:

If they are not live yet, please either publish them or install the widget to a test page. I’ll be happy to look into this :slightly_smiling_face:

2 Likes

Yes, they are published blogs in the widget and the widget is published at Blog | Organised Walking Tours & Guided Tours Wales | Wales Outdoors - the slug wales-travel-guide-sightseeing-in-wales is the first blog post I published.

2 Likes

Thank you!

Slugs don’t work when opening the posts because of the iframes used on Hostinger website builder. To fix it, you should reinstall the widget avoiding iframes.

For this, replace your current installation code with the new one:

<script src="https://custom-scripts.elfsightcdn.com/public-scripts/hostinger-and-go-daddy/install-widget.js" data-banner></script>
<div class="elfsight-app-WIDGET_ID"></div>

Replace WIDGET_ID in the 2nd line with the ID of your Blog widget and add the resulted code to your website.

Give it a shot and let me know if it helped :wink:

1 Like

Hi Max, the new code is installed and the blog displays as it should but direct linking to a post still returns 404 error…

1 Like
<script src="https://custom-scripts.elfsightcdn.com/public-scripts/hostinger-and-go-daddy/install-widget.js" data-banner></script>
<div class="elfsight-app-e66aa77a-a335-4a39-aaae-999fb1e6d957"></div>
2 Likes

I’ve just checked your website and it worked fine on my end:


Could you please double-check it in incognito mode and let me know if the issue still persists?

1 Like

Max, thank you! Yes it works now :slight_smile: This really helps with the value of the blog posts :slight_smile:

2 Likes

Perfect, you’re always welcome :wink:

2 Likes