-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I change the showcase to full width or use a slide to replace it? #747
Comments
1 - You do not need to do that anymore as you can just use layout manager and some custom css to do the same. @kevlardev @FrugalGeek This one is for you. :) |
Howdy, There's a configuration popup for each section in Gantry 5. Here's a link to the documentation: http://docs.gantry.org/gantry5/configure/layout-manager#sections This popup enables you to set Fullwidth or Boxed section properties from a dropdown, without having to edit any files. |
Mine is set at 100% but I don't think the picture is stretched all the way to the margins. Please give me your opinion. My website is http://fafschool.esy.es/ |
Hello. @deusbraga
|
In conjunction with fullwidth class shouldn't we also set the Section or the Particle to "nopadding" "nomargin" Gantry's variants to reach the border of the browser's window? |
@norcaljohnny add the following code in your
Then add @w00fz @mahagr @kevlardev Guys, why don't you just provide such utility class by default? I do provide it in my templates, but I'd like to make the name of this class the same as the one you will include in Hydrogen and the premium RT templates. Also, I find the Fullwidth/Boxed option really confusing and useless. Sorry to say that but this is my opinion: There are really just a couple of scenarios when someone may benefit of it. And if I would want to have a Boxed website, I would definitely not go and set each section to "Boxed". I would wrap the whole layout in a DIV with the And sorry if I have just misunderstood the Fullwidth/Boxed option. |
@JoomFX I LOVE YOU BRO! That did the trick! I have looked everywhere for this answer in the last 24 hours. 2000 thanks! |
😄 No problem mate ;) |
Here is the utility class which will work for all sections (not only for
|
Thank you once more my friend! This is very helpful as I was duplicating the same codes for other sections. Your time and efforts are very much appreciated! :D |
I was thinking of adding a 3rd Option: Do you guys think that would work? The Fullwidth might sound confusing but it is indeed doing what it says, makes the section fullwidth, although you are right the content is still 'Boxed'. I think there is a case for all 3, I don't think replacing the current Fullwidth with a flushed behavior will be sufficient. So totally there would be 4 options like this:
From Page Settings you set a default one so with 1 setting and all your sections are set to inherit from Default, otherwise you can go and change individual Sections to use any of the 3 possible approaches. Seems like a good solution to me, what do you guys think? |
Sounds good to me. I'm going to assign this to you and 5.2. |
Yah, it sound very good to me too. Thanks @w00fz And regarding the Boxed Layout of the whole website - could you probably add such an option in "Page Settings"? I mean add a "Layout" field with the following options:
And if the user selects the "Boxed" option, the whole layout will be wrapped in a new DIV with class |
The problem with wrapping the whole layout in a boxed representation is that all the sections within will become restricted to that and won't be able to go fullwidth anymore. I think at that level it should be a template decision and organization whether the main layout should or should not behaving like that. |
This is the purpose of the wrapping DIV, to restrict the sections :) But I agree that then the "Fullwidth" option in the Layout Manager will become pointless. Also, all other Joomla frameworks offer such option in the Admin. It is up to you, the RT Team, to decide how you will go about that 😄 |
I would be ok to add the option, the only concerns I have are:
|
Yes Djamil, it is definitely a tricky decision. Even before I asked for this to be added, I was wondering if this will be a good idea because of what you said in point 1 - that all templates will have to support it. And for example the latest RT Template, Kraken, should not support it. Point 2 should not be such a big issue as it is common sense that a Boxed website cannot (and should not) have fullwidth sections. Actually, one of my G4 templates (GossipFX) is a Boxed Layout with fullwidth section at the top 😄 Well.... yah, it is really tricky. There is no right and wrong here. There are definitely pros and cons of adding this option (the wrapping DIV). |
Ok so this is how the implementation for the Sections Layout looks like: In the
If you guys have better names, I'm all ears :)
|
Hmm, I created a Custom HTML particle and placed it in Subfeature, set it Fullwidth (Flushed Content) and the image is totally flushed to the edges of the browser, just as expected. When you talk about taking a part of a particle and changing how it acts without affecting everything else, you need to change the particle itself. That may require some coding as it means you will need to put a class on the image the particle displays that isn't consistent with the look of the rest. Now, what I think you might be wanting to accomplish based on this conversation is a background image instead of a color for the section. An image that spans the width of the browser and the text is overlaid with normal padding and margins. This is explained in documentation. You can find that tutorial here: http://docs.gantry.org/gantry5/advanced/customizing-theme-files#customizing-theme-files |
@pleblanc92172 Could you pass a URL to the issue? What you have should work |
Sure.. www.fitzgeraldsrestoration.com - Please see the map and the interior boat images. I would like both of those to be fullwidth. |
@w00fz and @FrugalGeek - notice that the image in showcase is fullwidth but the interior boat image and the google map image isn't. |
The site is currently under construction. Please let me know when you are finished viewing it so i can put the under construction page back up as soon as possible. i don't want the customer to see it yet. |
@FrugalGeek - I see the Fullwidth option in variations but not Fullwidth (Flushed Content) |
I don't see any map, I'm guessing you have it back under construction. Try his suggestion. |
I feel like an absolute idiot. You guys are correct. That fixed it. I was making the change in the particle setting and not the Section setting. When all else fail use screenshots! Thanks, guys. I have a large project that i'll be working on later this year. I am sure to use Gantry! Keep up the good work, Guys! |
Hello all. |
@BrenDude, do you have a site or a pic we can look at? |
@norcaljohnny, yes, please see the attached snippet screenshot. I'm using the current Gantry 5 version on Joomla 3.5.1. Its a brand new localhost site where I'm just starting to try Gantry to check out what it can do. Fullwidth (Flushed Content) was one of the 1st things I tried. I did also try the Fixed Header Atom; but removed it in case it was related. It didn't seem to be related. Any suggestions? Thanks in advance. |
@BrenDude, |
Well the image is flushed, otherwise there would be padding at the top and bottom. I haven't tried this but the concept is you need something of the like: .fullwidth-section img {
width: 100%; /* alternatively you could try 100vw */
height: auto;
} So basically you want that image to always fit horizontally and then properly scale vertically. I'm sure if you google you will find tons of documentation about this, it's purely CSS. |
Okay. Thanks for the quick response. Where would I need to place this bit of code? |
I was wondering about that. Hadn't quite fully formed the thought though... ; ) On mobile and tablet the image is fine, but on a desktop or tablet landscape mode the space is there. |
You should add all this logic in |
and that would be located in /templates/g5_hydrogen/custom/css-compiled correct? |
No, under |
sorry, I hadn't clicked. I'm a bit tired/stressed from being on the computer all day! Thank you again! Will check now |
Okay, that did it. Thank you so much!!! I'm really excited about Gantry 5 and all its possibilities, and that was a big help! |
You're welcome, glad everything is sorted and that you're liking Gantry. 😃 |
Hello, I've been loving on Gantry 5 for months now, both in Joomla and Wordpress. I do have one question in the vein of full-width. Now that we have sections able to do this, what would be the best method to allow content (And other positions) to also reach the margins? Would it be possible for the layout positions to inherit from the parent section? |
In the variations of the Block particle you can pick no margin and no padding, forcing the particle (position in your case) to fill all the space. If that's what you're trying to do. // Djamil Legato // From iPhone //
|
Hi w00fz, thanks for such a fast reply! Sadly, I've already tried that (see screenshot) with multiple particles. Navigation and Header both show full-width and actually work. Not sure if there may be something overriding this in other sections and particles, but I have yet to find the cause. Any ideas? |
if you want it to be 100% wide - use FLUSHED Content in a "Full Width" On Sun, Sep 18, 2016 at 11:09 PM, Robert Porter notifications@github.com
■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ |
what template is that ?
|
Just the basic Hydrogen with the particles, atoms, and background tutorials from the Gantry 5 documentation. Right now the default url (html) is pointing to a landing page, but it can be accessed via the .php. http://cwd.51shadesofgeek.com:8087/index.php |
Hi, first of all let me say Gantry is getting better and better. I used a few years ago when I purchased a template from Rocketthemes and, the difference between versions is just shocking..
Now, the predicament that brings me here is the following: I would like to stretch the showcase to full width but I can't seem to do it because I know almost nothing of coding. I've read somewhere that I should add the following lines to index.php to add module position within body tag( don't know where to do this):
2 - According to the same website I should then add the module to templateDetails.xml(which I've already found in hydrogen folder but doesn't seem to mention any modules);
And at last the Instructions I've read mention I should create some custom css file and add:
Now, my problem is, I've opened my website's index.php(which doesn't mention nor body nor and the templateDetails.xml and I don't know where to add the information nor if the instructions I'm following don't apply to gantry 5.
Sorry for the long post. Can you help me?
The text was updated successfully, but these errors were encountered: