Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.
How override html output (web site link preview in share panel)
Dear sirs, I shoud try to change the html output of your component via template/layout overrides, so that the the link (of an article preview in the status/share panel) gets a class name.
I think the part of code which I should change is this:
How can I change it?
I should this code it to use "modalizer plugin" where the class autoconvert option only works if the classname is on the <a> tag.
Thank you so much.
Just do an template override just like for any other file of that kind in Joomla!.
Copy file ROOT/components/com_community/templates/default/activities.stream.php to ROOT/templates/your-template/html/com_community (if you don't have "html" or "com_community" folders, feel free to create them).
Then edit file in line 175 and add class to anchor.
But in some cases you don't need to have specific class. You can select certain element without a class just using type of element e.g
.joms-stream-box .span4 a
- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.
- Use the "Thank You" feature on any post that helped you
Thank you for your reply, but can you help me to transform that code.
Because I was told the link should gets a class name and now that code is not in this way.
Thank you
No problem, please, edit your first post and add FTP credentials to corresponding boxes.
Then update this thread so I'll know.
- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.
- Use the "Thank You" feature on any post that helped you