Forum for discussing general topics related to Couch.
6 posts Page 1 of 1
Hi

I am having a nightmare trying to do the blog in couchcms, I am trying to follow the documentation but no idea where I have gone wrong. I can create blog posts on the admin side and then show if I change the p id number on the front end and they are ok, for example: http://www.recycleyourtec.com/blog.php?p=3

The issue I am having is the blog list, the link is http://www.recycleyourtec.com/blog.php

It is duplicating the footer and also the Blog header and background image

Can anyone help please as can't work out the issue

Thank you in advance

UPDATE: I managed to get bit further so the blog header and background image is not duplicated any more but it's still duplicating the footer and the share buttons I have coded in is not right on the second one

UPDATE TWO: Sorry think I have sorted it, I removed the footer html coding from blog_list.html file in my snippets folder and removed the share icons on the blog list as did not need them there
Hi,

I think the footer code you output using <?php include( 'includes/footer.php' ); ?> is already present in 'blog_list.html' - hence the duplication. You should remove the duplicate code from 'blog_list.html'.

Hope the reply helps.
Hi KK

Thank you for the reply, yeah think I sussed it as you posted it lol

While you here though, can I pick your brain

On the blog post itself for a article like this one for example: http://www.recycleyourtec.com/blog.php?p=4

Can share icons be coded in so visitors of the blog can share it on social media, do you know of any coding or links on couchcms that can do it please?
Thanks. Would be great if you could share here the exact code you used on your site.
I am sure it would be helpful to many.
Sorry yeah, I am hoping it works

The code I integrated is below, the first line goes in between the head tags

The second goes where you want it to display

Code: Select all
<script src="//platform-api.sharethis.com/js/sharethis.js#property=5b3e3a68c5ed960011521a96&product=inline-share-buttons"></script>

<div class="sharethis-inline-share-buttons"></div>


If it don't work, is there another options/method that will work?
6 posts Page 1 of 1
cron