Support Forums

Support Online : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Read more in new window with Articles addon

Featured Lock Resolved Task
I'm trying to make 'open in a new tab' link for 'readmore' in Article addon, but something goes wrong and now it's opening but only home page (not a material)
I put
if($show_readmore) {
$output .= '<a class="sppb-readmore" href="" target="_blank" '. $item->link .'" itemprop="url">'. $readmore_text .'</a>';
}

inside site.php in the folder /com_sppagebuilder/addons/articles

Could you advise me?..

If to put
$output .= '<a class="sppb-readmore" href=" '. $item->link .'" itemprop="url" " target="_blank">'. $readmore_text .'</a>';
404 error...
but the link looks more correct
%20/news/79-our-team-at-blockchain-expo
if it'll be no '%20'

3 Answers

Paul Frankowski - Staff

More than a month ago #Permalink
Hi,
because probably you have double " " after url

Use this

if($show_readmore) {
$output .= '<a class="sppb-readmore" href="'. $item->link .'" itemprop="url" target="_blank">'. $readmore_text .'</a>';
}


----
In SP Page Builder 3 Manual > Faq - there is guide how to override addon inside folder template, use it.

Mary

More than a month ago #Permalink
OMG! Thank you! So easy)


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 133
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 94
Toufiq

Toufiq

Total Accepted Answers: 28
Pavel

Pavel

Total Accepted Answers: 4
Al Mamun

Al Mamun

Total Accepted Answers: 3

113

Templates

289929

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us