Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1917

Templates for Joomla! 5.x • Re: New Theme Styling missing

$
0
0
To get you started:

1. Copy the index.php file from Cassiopeia into your Child

2. To add bootstrap css: Within the php part add

Code:

$wa->useStyle('bootstrap.css');
3. To add your custom CSS: Within the php part add

Code:

$wa->addInlineStyle('   /* Here's where you add your custom inline styles */   /* Though considder using the user.css file */   @font-face { (...) }   body { background-color: transparent; }   .htmlstyle { (...) }   /* Considder cleaning up .htmlstyle { }: you have double properties and some properties are not necessary */ ');
4. To add bootstrap js: Within the php part, only add the bootstrap js you need

Code:

$wa->useScript('bootstrap.abc');/* Replace abc with the filename (without extension) located in /media/vendor/bootstrap/js *//* i.e. $wa->useScript('bootstrap.alert'); adds the alert.min.js file*/

Statistics: Posted by Mr. Wimpy — Wed Apr 24, 2024 2:35 pm



Viewing all articles
Browse latest Browse all 1917

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>