How to change widith predefined J4-Cassiopeia positions?

Everything to do with Joomla! 4.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
souteasteurope
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Wed Aug 23, 2023 10:42 am

How to change widith predefined J4-Cassiopeia positions?

Post by souteasteurope » Fri Sep 22, 2023 7:14 am

Hi. Has anyone alreday tried to change with help of Child Template, the layout positions of the template Cassiopeia -J4, (example like position BOTTOM-A or BOTTOM-B from original predefined to another like width 1400), while keeping the text (content) in the same position as original.I want the background color cover the entire width of a certain section (position), without leaving any white margins on side "in my case white color"? Please see the photo for a better understanding (picture is just one example, I would like to change in different position as well - Like TOP-A or TOP-B).

It is possible to use a CSS command in the user.css file to override the default layout of prefixed position width?
You do not have the required permissions to view the files attached to this post.

User avatar
Pavel-ww
Joomla! Ace
Joomla! Ace
Posts: 1417
Joined: Tue Jun 30, 2020 12:17 pm

Re: How to change widith predefined J4-Cassiopeia positions?

Post by Pavel-ww » Fri Sep 22, 2023 7:25 am

souteasteurope wrote:
Fri Sep 22, 2023 7:14 am
It is possible to use a CSS command in the user.css file to override the default layout of prefixed position width?
Hi. Yes, of course this is possible. Always provide URL when you ask questions related to changing the appearance of the layout. No one will reproduce your case to answer you and no one knows the code by heart, even its developer.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30483
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: How to change widith predefined J4-Cassiopeia positions?

Post by Per Yngve Berg » Mon Sep 25, 2023 4:10 am

Mod. Note: Relocated the topic to the Templates Forum.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30483
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: How to change widith predefined J4-Cassiopeia positions?

Post by Per Yngve Berg » Mon Sep 25, 2023 4:12 am

You can set the Template in Fluid Mode. Have you tried that?

souteasteurope
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Wed Aug 23, 2023 10:42 am

Re: How to change widith predefined J4-Cassiopeia positions?

Post by souteasteurope » Mon Sep 25, 2023 7:02 am

Per Yngve Berg wrote:
Mon Sep 25, 2023 4:12 am
You can set the Template in Fluid Mode. Have you tried that?
Thank you so much for the answer and suggestion Mr. Per Yngve Berg. Unfortunately Fluid Mode is not a solution, because when I change to Fluid mode Cassiopeia Template - J4, all the content goes out of the line, i.e. text, titles, the whole website should be corrected then.

souteasteurope
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Wed Aug 23, 2023 10:42 am

Re: How to change widith predefined J4-Cassiopeia positions?

Post by souteasteurope » Mon Sep 25, 2023 8:08 am

Pavel-ww wrote:
Fri Sep 22, 2023 7:25 am
souteasteurope wrote:
Fri Sep 22, 2023 7:14 am
It is possible to use a CSS command in the user.css file to override the default layout of prefixed position width?
Hi. Yes, of course this is possible. Always provide URL when you ask questions related to changing the appearance of the layout. No one will reproduce your case to answer you and no one knows the code by heart, even its developer.
Unfortunately, I have it on localhost, I can´t provide URL, I am sending a couple of screenshots, if it will help for easier understanding. So, if I understood correctly, you can change the specific layout position with the help of commands in user.css, which means that it will not change the entire position layout of the predefined template, for example the "Breadcrumbs" position, for only specific page, where is determined specific module, like in my case. If that's true, then is so much better that I can change on a single page, a specific position with a specific module which is determinated on that position?

In this case would like that background color gray is full width, the content remains the same layout. Btw (this is a module SmartSlider on position Breadcrumbs, there are 2 modules SmartSlider on same position on specific page).
You do not have the required permissions to view the files attached to this post.

User avatar
Pavel-ww
Joomla! Ace
Joomla! Ace
Posts: 1417
Joined: Tue Jun 30, 2020 12:17 pm

Re: How to change widith predefined J4-Cassiopeia positions?

Post by Pavel-ww » Mon Sep 25, 2023 2:48 pm

souteasteurope wrote:
Mon Sep 25, 2023 8:08 am
Unfortunately, I have it on localhost, I can´t provide URL, I am sending a couple of screenshots, if it will help for easier understanding.
Hi. There is no problem with the understanding of what you want. But screenshots will not help solve the problem. We need to look at your page using Dev Tools. Therefore, you should upload the site to a hosting. Many hosting companies offer a test period. In any case, when you want to receive help with such issues, you must provide a link. Sorry, but there is no other way to help you.

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20591
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: How to change widith predefined J4-Cassiopeia positions?

Post by leolam » Mon Sep 25, 2023 5:57 pm

We need a site we can access online. Pavel is right. Without that it is all a wild guess and takes too much time

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

souteasteurope
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Wed Aug 23, 2023 10:42 am

Re: How to change widith predefined J4-Cassiopeia positions?

Post by souteasteurope » Tue Sep 26, 2023 12:50 pm

Pavel-ww wrote:
Mon Sep 25, 2023 2:48 pm
souteasteurope wrote:
Mon Sep 25, 2023 8:08 am
Unfortunately, I have it on localhost, I can´t provide URL, I am sending a couple of screenshots, if it will help for easier understanding.
Hi. There is no problem with the understanding of what you want. But screenshots will not help solve the problem. We need to look at your page using Dev Tools. Therefore, you should upload the site to a hosting. Many hosting companies offer a test period. In any case, when you want to receive help with such issues, you must provide a link. Sorry, but there is no other way to help you.
Thank you for the answer Mr. Pavel. I totally understand!

Von Barron
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Apr 08, 2016 9:19 am

Re: How to change widith predefined J4-Cassiopeia positions?

Post by Von Barron » Thu Oct 05, 2023 10:12 am

Not sure what you want to acheive here but here is an option to explore:
- create a child template of Cassiopeia and open it
- edit the index.php file and add some Flex CSS classes to the positions you want to modify. Example: "d-flex justify-content-center" and additional CSS classes for the background colors.
- remove the "full-width" class where is not needed
- save and test your frontend


Post Reply

Return to “Templates for Joomla! 4.x”