14

By default you could use the following styles: none (output raw module content) html5 (chosen html5 tag and font headder tags) table (wraps the module in a table) horz (wraps the tabled module output in a tag of another table) xhtml (divs and font headder tags) rounded (allows for rounded corners by wrapping in nested div tags) outline (add preview ...


6

The solution was to create a module override of \modules\mod_custom\tmpl\default.php The offending code in that file was <div class="custom<?php echo $moduleclass_sfx ?>" <?php if ($params->get('backgroundimage')) : ?> style="background-image:url(<?php echo $params->get('backgroundimage');?>)"<?php endif;?> > <?...


6

JDocument->addScript() has options to defer the loading of the script and/or load it async. See the API doc: http://api.joomla.org/cms-3/classes/JDocumentHTML.html#method_addScript This will allow the browser to load the scripts later in the process, which will help with the pageload time. There is no API to load the scripts at the bottom of the page. If ...


6

Looking at the Protostar template, it uses modules.php so try changing your file from: module.php to modules.php Note the s on the end. Also, on your jdoc includes, try adding a space before the forward slash at the end. style="megarounded"/> to style="megarounded" /> Hope this helps


5

To override those defaults you just need to place a file called modules.php in a folder called html in your template, e.g.: /templates/[your default template]/html/modules.php. Then you can apply your custom module chrome either by specifying it in index.php of your template or within the module settings.


5

Found it! Source of joomla chrome styles can be found in: /templates/system/html/modules.php


5

You can set recaptcha element width with css like that: Place those lines in your module's php file $document = JFactory::getDocument(); $recaptcha = '#dynamic_recaptcha_1>div>div {' .'width: 100% !important;' .'border-radius: 4px;' .'overflow: hidden;' .'max-width: 300px;' .'}'; $document->addStyleDeclaration($recaptcha); But ...


4

You will need to create a Template Override for the article and category views. This may not be a preferred method, however it's what I would personally do. Category view: So once you have created your overrides for both views, in the category view, add the category ID as a class to the element for the title. For example: <div class="id_<?php echo $...


2

We were having the same problem with this module. It may be something with the newer Joomla version we're using but we couldn't get oooooo's answer to work. There is a slightly new directory structure you must follow (We're using Joomla 3.6.2). You must place your overrides in an "html" directory inside your template. https://docs.joomla.org/...


2

There is no method to add a script to the footer right now. However you could make a plugin that gets the output, searches for an appropriately named tag, like footer and use str_replace to add in your code. But you can use these extensions achieve that: ScriptsDown JCH Optimize Also i found one method. I prefer not to hack the core code, but that's the ...


2

We use a module called "Blank Module", which allows to put any script (PHP, Java, CSS, HTML, whatever) and choose where to load it (head, body, end of body, etc). It's free, and I found it totally useful: http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-modules/3668 To move scripts from the to below the ...


2

By now I think there's no option to load scripts on the bottom of the page. For your second question, you could use a static boolean property and set it to true the first time your css is rendered. For following module instances simply test this property to decide if you need to add your css or not. Maybe a good place to add this static property is a ...


2

More info about layout override : https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core If you want to change how the mod_menu Module is displayed, then you should copy : PATH_TO_JOOMLA/modules/mod_menu/tmpl/default.php to TEMPLATE_NAME/html/mod_menu/default.php and modify the file in your template You can also use the Template Manage ...


1

You're going to need to learn how to use template overrides for this (or find ones other people have made). It's probably the easiest way into Joomla, and a good way to gradually learn (at least a bit of) PHP; apologies if this isn't the case, but I'm going to assume you aren't overly familiar with it just in case. For the record, the documents for this are ...


1

According to the screenshot you put your class name into "Module Class Suffix". Suffix is a keyword there, because in you case it will give you a class name: customlatestnews in the HTML code of the website. There is a simple trick however - just add a whitespace before class name in Module Class Suffix field. If this is custom-developed module, ensure ...


1

To get rid of the "moduletable" wrapper just create a module style: In templates/your_template/html folder create a file named "modules.php": <?php function modChrome_BoHivex($module, &$params, &$attribs) { $module_class_sfx = htmlspecialchars($params->get('moduleclass_sfx')); ?> <div class="custom<?...


1

You can add new module positions directly from the Template administrator panel: Our main aim was to move possibly a large number of parameters to administrative panel which normally were changed in template code directly. Thanks to this, beginner users, can easily add new module positions and change many settings in administrator panel from ...


1

In your imgae, the next position on bottom for your "content" was in "Lower Body". Did you try add your content in "Lower Body Position"?


1

This is untested but I think something like this would do it: <?php // Find modules by position name $offcanvasModules = JModuleHelper::getModules('menuposition'); // Pass module render options $moduleOptions = array('layout' => 'offcanvas'); ?> <?php foreach ($offcanvasModules as $module) : echo JModuleHelper::renderModule($module, $...


1

This may help if you're wanting to make your own Chrome styles: http://docs.joomla.org/Applying_custom_module_chrome


Only top voted, non community-wiki answers of a minimum length are eligible