Forum Replies Created
-
AuthorPosts
-
The problem with the above code is that it uses the same picture for both sizes
I would like to use 2 different images for the two different sizes within the same color section.
In other words one image gets used when user is viewing at 480px width and another image is used when viewing at 768px, not the same image for both sizes.
Maybe I’m just not understanding correctly. Are you saying I can do this to get different images for the different screen sizes without one overriding the other?
@media only screen and (min-width: 0px) and (max-width: 480px) {
#home-banner { background-image: url(DIFFERENT IMAGE URL HERE #1) !important; }
}@media only screen and (min-width: 481px) and (max-width: 767px) {
#home-banner { background-image: url(DIFFERENT IMAGE URL HERE #2) !important; }
}@media only screen and (min-width: 768px) and (max-width: 1300px) {
#home-banner { background-image: url(DIFFERENT IMAGE URL HERE #3) !important; }
}- This reply was modified 8 years, 4 months ago by marienlely.
No worries, thanks for the reply. Hmm don’t think that will work as I want two different images for the two sizes in the same color section.
So I would need one image for the 480px and another for the 767px, and another for 1300px, etc. to have complete control of what shows on what screen size.
This possible?
July 6, 2016 at 10:19 am in reply to: Replace a page for a desktop view with page for mobile view #657362Vinay, thanks! Works perfect.
For anyone finding this thread I made mine to include landscape Ipad minis as well. I also included a piece of code to remove it from my nav list with this:
/* — 1. REMOVE WORK MOBILE — */
@media only screen and (max-width: 1024px) {
#menu-item-MENU ITEM NUMBER HERE { display: none !important; }}@media only screen and (max-width: 1024px) {
.page-id-PAGE NUMBER HERE { display: none !important; }}July 5, 2016 at 1:59 pm in reply to: Replace a page for a desktop view with page for mobile view #657048Thanks for the response Vinay. What about just excluding the page when viewed at a certain size?
Hey Ismael. I never replied, my apologies!
No worries, I understand the limitations. I was just clarifying on your question if it was possible. I’ll live with how it is now as it doesn’t look bad :)
Thanks for the wonderful support
Also, is it possible to have the sticky sidebar start being fixed at a certain point when scrolling down? For example, I don’t want the sidebar to stick and move with the page right away, only until the user has reached a certain point on the page when scrolling. In other words can I delay when the sticky left sidebar starts sticking?
Check out the link below Ismael. The sidebar on the right only starts sticking when the user has scrolled a certain amount down the page. In the case of my sticky bar it sticks right away, which I want to delay a bit like the link shows.
http://philipwalton.github.io/polyfill/demos/position-sticky/
Fixed the differences of sidebar appearance!
Turns out the custom menu I had made for the occasions inner pages had full links to bring you back to the correct position on the main occasion page. However, the main occasion page relies on anchors not links, so I needed to use a new custom menu with only anchor links being used.
So for anyone using anchors make a note of this.
So now that leaves the sticky header scroll behavior I mentioned, if you could help me with that would be awesome.
“Also, is it possible to have the sticky sidebar start being fixed at a certain point when scrolling down? For example, I don’t want the sidebar to stick and move with the page right away, only until the user has reached a certain point on the page when scrolling. In other words can I delay when the sticky left sidebar starts sticking?”
Hi Ismael,
The grid row I had at the bottom of the page is exactly what was wrong, good catch and thank you for taking time to look into my mistake :)
New problem, now that I’ve reintroduced the sidebar on the http://everaardtechniek.nl/occasions/ it doesn’t match the CSS styles I’ve added to look like http://everaardtechniek.nl/test-sidebar/ . Perhaps something on the occasions page is conflicting with it?
Also, is it possible to have the sticky sidebar start being fixed at a certain point when scrolling down? For example, I don’t want the sidebar to stick and move with the page until the user has reached a certain point on the page when scrolling. In other words can I delay when the sticky left sidebar starts sticking?
Thanks!
Login details below
Thanks!
False alarm! Turns out my Enfold wasn’t updated to the latest. Seems to be fixed now after a few refreshes.
October 2, 2015 at 1:15 pm in reply to: Editing color section changes many things on my page, something is broken… #512761Yigit,
Wow! That’s a small thing to throw it out of whack. Thank you for reviewing that!
Reason I did that is to have the code there in case I needed it but as an inactive piece of code. Guess I should not do that!
Rikard, Ismael & Yigit thank you all for your help.
10/10 support
October 2, 2015 at 1:03 pm in reply to: Editing color section changes many things on my page, something is broken… #512746Hi Ismael,
I changed the dynamic_avia folder to 755 and went back to the first, couple after first, middle ones, and latest revisions but all of the problems I originally posted are still there.
The content width is also at 910px & not at 1310px still which is strange.
Thanks for the help so far.
October 1, 2015 at 12:38 pm in reply to: Editing color section changes many things on my page, something is broken… #512100Not sure if the first private content worked, but here is the info again just in case.
Thanks in advance
Oh, but I still need a means to make a vertical line between the two columns (main content & sidebar). Maybe I could just make a third column in between the two and put a vertical line in there by using an image of a line or a repeating pixel or something.
Ismael, I figured it out!!!
I can just use a grid row and put all of my layout elements in there. This way I have much more control over everything and nothing gets pushed down as it’s all in the same cells of the grid.
Thanks for the help, though!
Jim, thanks for the tip. I should be able to get it right now.
Rikard, thanks for checking in. Jim gave me enough to go off of so I should have no problem with it.
Ok, now I’m getting somewhere based on your suggestion. I’ve got all of my main content in one 2/3rd box and the sidebar in a 1/3rd box to the right.
Check it out here: http://urbancrochet.com/?page_id=2647 I will refer to this page as HOME 2
Some questions regarding my main content
1. If you refer to my other page where I used an actual sidebar here: http://urbancrochet.com/?page_id=2590 (we’ll call this HOME 1) you can see that my main content images, like starter kit image, yarn image, etc, have a nice pop in animation when you scroll. I would like to do this on HOME 2. Problem is in HOME 2 the picture and text are in one text box, so I can’t manipulate the image as much to do that animation.
Is there a way to add a media element, then to the right of it a text box if it’s in the same 2/3rds column? It can be done if they are on top of one another vertically, but haven’t figured out how to do it side by side in one column. In HOME 1 I used two columns to achieve this which I can’t do as I’m reduced to using only 1 column for all of my main content.
2. In the event I have to keep the picture & text in the same text box can I add more padding between the picture and the text? The picture on the right and text on the left are quite close to each other using this method.
3. Still styling the sidebar so ignore the crazy alignment stuff :p but can I add a vertical separator line like the sidebar in HOME 1 has?
Thank you so much, I appreciate your help Ismael
Hmm I could but how could i span my titles of each section across 2 1/3 column layouts?
Check out my page so far here and you’ll see what I mean: http://urbancrochet.com/?page_id=2590
Underneath the banner area I have a title and paragraph that spans 2/3rds of the way, then under that another title and paragraph with a divider, than under that I have individual 1/3rd columns for the pictures on the left & paragraph on the right.
Am I able to put all of that main content in one column with a sidebar column on the right?
I’m using individual boxes so I can have header text, then body copy, then images accompanied with text. Not sure I can do all this with just 1 2/3 column or 2 1/3 columns.
thanks for the help Ismael
That works great. Problem is though my sidebar pushes down the next set of 1/3rd boxes that are underneath those initial 1/3 boxes
So the longer the sidebar the further my next line’s content gets pushed down if that makes sense. Here is an example of what’s happening: http://i.imgur.com/vzgGKav.png
desired effect: http://i.imgur.com/IltbgN7.png
I could split the sidebar in two, but that doesn’t look too great.
What if use the footer as my “color section” area? I don’t need an extensive footer and I could throw a custom color, a title, & some book links in there. What do you think?
Thanks for the help so far, Elliott
Hi Yigit,
I more meant in the possible ways of customizing the sidebar, so I could have more control. I installed a sidebar plugin recently and that seemed to work pretty well.
I recently discovered I can manipulate the text widget for the sidebar pretty easily with the enfold one, so I might switch back.
Basically what I want to do is show a title > book underneath > short description underneath > text link ….and then another section
Check out my site here: http://urbancrochet.com/?page_id=2590 . You can see what I’m doing there with the sidebar currently. One problem is I’m trying to insert a rule under the title for each category, but so far unsuccessful there.
Thanks for checking in on this Yigit
Ok, found another sidebar plugin. So my sidebar is looking better (with the exception of the bullet on the title of each sidebar section, but I’ll figure that out I hope).
I would like to add a color section below the sidebar right above the footer. I understand this isn’t possible with how wordpress works. I’ve found in other threads that you can make a 2/3 column & a 1/3 column and add in the widget sidebar into the 1/3 column. This works great, however, the 1/3 column with my sidebar pushes down the 2/3 column content underneath the other 2/3 column content to where the fake sidebar column ends.
Is there a way to do that layout where the fake sidebar column doesn’t push down the next line’s main content?
Refer to my screenshot above to get an idea of my desired layout
Hi Archlantis,
What was the solution? I’m having issues with not being able to customize my sidebar.
Thanks,
MarienThis reply has been marked as private.I fixed the issue by removing the pages individually from the customize menu option. Weird that it inserted all these duplicate homes, sliders, etc.
Would still be great if you could check out my design and recommend the best way to move forward :D
-
AuthorPosts