By Jeff Suddaby on Monday, 10 November 2014
Posted in General Issues
Replies 13
Likes 0
Views 823
Votes 0
Hi,

When users click the blog title or readMore button on the EB frontpage, I want the posts to load at a specific anchor point I've placed in the post. (i.e. at at specific #id)

How do I do this?

TIA - Jeff.
Hello Jeff,

I'm sorry but it is not possible.
·
Tuesday, 11 November 2014 00:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the info Nick.
·
Tuesday, 11 November 2014 00:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jeff,

You're welcome.
·
Tuesday, 11 November 2014 00:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

Just an afterthought. As a workaround...

If I used the SAME anchor id in every blog post (and located it in whichever paragraph I wanted at the top), could the Blog Title and Readmore link code be modified so as to automatically append the #id whenever the links were executed?
·
Tuesday, 11 November 2014 02:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jeff,

Yes, it is possible. Just make sure the anchor is an ID of any HTML tag. for example: <p id='anchor1'></p>.
·
Tuesday, 11 November 2014 10:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Sounds good Nik.

How & Where do I modify the EB title and readmore links so they will point at the anchor?

TIA - Jeff.
·
Tuesday, 11 November 2014 22:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jeff,

You can provide us your backend and FTP so we can modify it for you. And we will inform you which file that we have changed.
·
Tuesday, 11 November 2014 22:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Nick.

I'd like to use id="entryScroll" for the anchors

Site details are appended. The FTP username and password are the same as the site's, if you need them.
·
Tuesday, 11 November 2014 22:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jeff,

I've added the hack to your site. The files that I modified are:
../components/com_easyblog/themes/default/blog.readmore.php
../components/com_easyblog/themes/origami/blog.item.php

Please give it a try.
·
Tuesday, 11 November 2014 23:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Nick - It works perfectly! Thank you very much!

Now that I can see it in action though, I think I want the scroll-to-anchor effect to happen ONLY when the user clicks the readmore link - and not the title-link as well.

Sorry for the trouble here but could you undo the hack for the title link, so that the scroll effect only happens when the readmore link is clicked?
·
Tuesday, 11 November 2014 23:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jeff,

Sure. I've revert the hack for title.
·
Wednesday, 12 November 2014 00:44
·
0 Likes
·
0 Votes
·
0 Comments
·
That's great Nick. Sorry for all the confusion there. And thanks very kindly for your patience in setting it right!

Warm regards,

Jeff.
·
Wednesday, 12 November 2014 00:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jeff,

No problem.
·
Wednesday, 12 November 2014 10:09
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post