JP Yootheme Alert Message - Create New Module Position
Article Index
Page 4 of 7
Create New Module Position in Child Template
The below steps create a new module position to place its content above the menu bar
- Navigate to the templates directory of your site Joomla installation.
- Create a new directory for your child theme. For example, if your parent theme is yootheme, name your child theme directory something like yootheme_child , here we name as yootheme_child2
- Create a new directory "templates" inside child theme directory created.
- Copy header.php and header-mobile.php files from the parent theme directory (yootheme -> templates) to your child theme directory (yootheme_child2).
- In the header.php and header-mobile.php files, insert the following code at the desired location to render the new module position "top-alert-message"
- Now open "YOOtheme" website builder inside the Joomla admin and then go to "Settings -> Advanced" then select the newly created child theme.
- From the main joomla dashboard click “Extensions -> Modules”
- Create a new module or edit an existing one. In the module settings, select top-alert-message from the position drop down . Save your changes and check your site to ensure the module appears above the menu bar