Copyright © 2006 - 2026 JoomlaWorks Ltd.
JoomlaWorks Ltd. and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.
Insert some code right before comments
I've been using your excellent plugin for some time now and must say it's great - never had a hickup :)
I'd like to now add a small piece of code right before the comments / disqus panel on each article starts. Tried adding the widget to
/plugins/content/jw_disqus/jw_disqus/tmpl/article.php
right before <a id="startOfPage"></a> but it did not work. Can you guide me where I should place the code please for it to work as requested?
Thanks
It should work. This is the layout that is used in article page. Have you tried to clean Joomla! cache?
function YOURMODULENAME_page_process(&$children, $elements) {
// your code
$MY_CODE = 'HERE YOUR CODE';
// Insert custom_code after the opening body tag.
$children = preg_replace('@<body[^>]*>@', '$0' . $MY_CODE, $children, 1);
return $children;
}
I don't get what you mean. Are you facing an issue with the plugin?
Log in or create an account to reply.