We’re with you. JoomShaper is offering a 20% Discount on all plans due to the impact of COVID-19

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

Your Time: Our Time:

Module size will not respond

Featured Lock Resolved
I'm using Simple YouTube on my responsive site using a Rocket Theme responsive template. On the mobile devices the module is correct however on the computer the size will not respond and is very large. Nothing I have done works. I have uninstalled and re installed the latest module, I have adjusted the dimension to everything imaginable and it does not respond. Can you please help me? The URL is: http://www.assuretech.info . I will be looking forward to your response. Thank you.

3 Answers

Kawshar Ahmed - Senior Staff

More than a month ago #Permalink
Well, this module is responsive. So, it will streach to 100% width automatically.

George

More than a month ago #Permalink
So the "width" and the "height" under "basic options" do not adjust the size of the module as indicated in the instructions? If not, please tell me how do I adjust the module? Thank you for your help.

George

More than a month ago #Permalink
Below is: mod_sp_simple_youtube.php file. I change the width currently at 300 to 50 and the height currently at 200 to 50 but no response to the template. should I change something else or am I way off. I am new to Joomla so will someone please help?

// no direct access
defined('_JEXEC') or die('Restricted access');
//Parameters
$doc = JFactory::getDocument();
$uniqid = $module->id;
$youtube_id = $params->get ('youtube_id');
$width = $params->get ('width',300);
$height = $params->get ('height',200);

if (!defined('_SPSYT')) {
define ('_SPSYT',1);
$doc->AddScriptdeclaration("function spsyt(a, b, c){
var id = document.id(a);
var w = id.getParent().getWidth();
var h = (c*w)/b;
id.setStyles({
'width': w,
'height': h
});
}";);
}

require(JModuleHelper::getLayoutPath('mod_sp_simple_youtube'));


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

123

Templates

327543

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