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

Your Time: Our Time:

Modal popup suggestion for SEO reasons

Featured Lock Resolved Task
Hey there,

one idea to optimize SPPB more for SEO.
On modal popup addon I made a change as following:

Original in "components/com_sppagebuilder/addons/modal":

if($modal_selector=='image') {
if ($selector_image) {
$output .= '<a class="sppb-modal-selector sppb-magnific-popup" '. $attribs .' href="'. $url . '" id="'. $modal_unique_id .'-selector"><img src="' . $selector_image . '" alt="">';
$output .= ($selector_text) ? '<span class="text">' . $selector_text . '</span>' : '';
$output .= '</a>';
}
}


New code:

if($modal_selector=='image') {
if ($selector_image) {
$output .= '<a class="sppb-modal-selector sppb-magnific-popup" '. $attribs .' href="'. $url . '" id="'. $modal_unique_id .'-selector"><img src="' . $selector_image . '" alt=" ' . $selector_text . ' ">';
// $output .= ($selector_text) ? '<span class="text">' . $selector_text . '</span>' : '';
$output .= '</a>';
}
}


This will not display the text byside the icon, instead it is set as "alt"-attribute for the image :-)

Maybe you could add here an option to select like "show selctor text byside icon: yes / only alt-attribute" ?

1 Answers

Paul Frankowski - Staff

More than a month ago #Permalink
Hi,
thanks,
I will redirect your post into our developer.


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

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 120
Mehtaz Afsana Borsha

Mehtaz Afsana Borsha

Total Accepted Answers: 63
Ofi Khan

Ofi Khan

Total Accepted Answers: 51
Rashida Rahman

Rashida Rahman

Total Accepted Answers: 50
Toufiq

Toufiq

Total Accepted Answers: 41

121

Templates

319310

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