By Juan Carlos Zayas on Wednesday, 05 July 2017
Posted in Technical Issues
Replies 9
Likes 0
Views 889
Votes 0
I would like to add the following anchor tag "#rt-mainbody" to every link that is pressed. So for example if I press the readmore button link or a navigation link I get:
http://elearnernetwork.org/business.html

I would like to automatically append "#rt-mainbody" to all links so the result would be:
http://elearnernetwork.org/business.html#rt-mainbody

I am using the vintage template... I think I should be looking at the Template Editor but I am unsure what to change. Thank you in advance for your help.
Hi Juan,

To be honest, regarding your inquiry it require customization and there is no easy way to change all link to have anchor tag (#rt-mainbody) where it is not simply change it under theme file.
Perhaps, can you point us one of the link that you want append (#rt-mainbody ) in the link so we can try give you ideas on how to make it
·
Thursday, 06 July 2017 10:51
·
0 Likes
·
0 Votes
·
0 Comments
·
When I click on the Read More button from my EasyBlog - Showcase Module I get:
https://elearner.network/emessageboard/mayor-emanuel-and-cps-announce-2017-class-for-principal-leadership-programs

I would like to get:
https://elearner.network/emessageboard/mayor-emanuel-and-cps-announce-2017-class-for-principal-leadership-programs#rt-mainbody
·
Tuesday, 11 July 2017 12:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Juan,

Seems like you're using Slick module layout for the showcase module
Where you can customize in the file:
.../modules/mod_easyblogshowcase/tmpl/slick.php
locate the code (line 76):

<a href="<?php echo $post->getPermalink();?>" class="mod-btn mod-btn-more"><?php echo JText::_('MOD_SHOWCASE_READ_MORE');?></a>

into

<a href="<?php echo $post->getPermalink();?>#rt-mainbody" class="mod-btn mod-btn-more"><?php echo JText::_('MOD_SHOWCASE_READ_MORE');?></a>

Please give it a try

You're suggested to backup the file that you want to customize beforehand for precaution
·
Tuesday, 11 July 2017 13:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Worked perfectly... Thank you.

Moving onto my next issue.

I would like to append the same anchor tag to all the Next and Prior article buttons as shown below:
·
Tuesday, 11 July 2017 22:54
·
0 Likes
·
0 Votes
·
0 Comments
·
You can find the codes in /components/com_easyblog/themes/wireframe/blogs/entry/navigation.php
·
Tuesday, 11 July 2017 22:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Again that worked perfectly... Thank you!

Moving onto my third issue.

I am using the "EasyBlog - Auto Article" plugin to generate a Joomla version of the easyblog posts as articles on the front page. I would like to append the same anchor tag to all the Read More article buttons as shown in the pic.

I would like to add the following anchor tag "#rt-mainbody" to every Read More button that is pressed. So for example if I press the readmore button link I get:
https://elearner.network/index.php?option=com_easyblog&view=entry&id=73&Itemid=162&Itemid=162

I would like to automatically append "#rt-mainbody" to all links so the result would be:
https://elearner.network/index.php?option=com_easyblog&view=entry&id=73&Itemid=162&Itemid=162#rt-mainbody
·
Wednesday, 12 July 2017 05:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Juan,

You can customize in the file file:
.../plugins/easyblog/autoarticle/autoarticle.php
line 128

$readmoreLink = '<a href="' . $readmoreURL . '" class="readon"><span>' . JText::_( 'Read More' ) . '</span></a>';

to

$readmoreLink = '<a href="' . $readmoreURL . '#rt-mainbody" class="readon"><span>' . JText::_( 'Read More' ) . '</span></a>';

This only effected when you create a new blog post or edit/save the existing post where it was stored in the article content.

You're suggested to backup the file that you want to customize beforehand for precaution
·
Wednesday, 12 July 2017 12:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Once again that worked perfectly... Thank you!
·
Wednesday, 12 July 2017 13:23
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Juan

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry.

Have a nice day ahead
·
Wednesday, 12 July 2017 13:54
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post