Forum Replies Created
-
AuthorPosts
-
Hi Ismael!
I look at the nth-child selector link but was not successfull at aplying it.
I’m afraid this is beyond my limited skills.
The best I was able to do is to display a background image on a submenu item and its children with the following:
.av-main-nav li.page_item.page-item-33 ul.children a {
background-image: url(“http://idetox.voyage/wp-content/uploads/2015/10/Cadre1.png”) !important
}
But I’m not able to have it show ONLY on the 2 direct children of li.page_item.page-item-33 (li.page_item.page-item-190 and li.page_item.page-item-210), and not on their own children.
If you have bright idea, please let me know, otherwise I’ll just keep the easy/basic design without the horizontal submenu dividers as I had imagined them.
Thanks for your help and wish you a nice end of week.
Steph.Hi Ismael,
Thanks for the link. I’ll investigate more this option cause I was not able to get it so far.
A last path of investigation for this topic: is there a way to specify a submenu backgroud image?
For example, if I take the 2nd item of my navigation menu (.av-main-nav li.page_item.page-item-33), is there a way to apply a backgroud image on its ul.children as a whole? … Or even individually to each of its subsequent menu items (in this case li.page_item.page-item-190 and li.page_item.page-item-210)?Thanks once more for your help,
Steph.
Hi Imael and thanks for your sugestion!
As this dispalys a line which is not a equal distance between 2 consecutive submenu items, I changed margin to margin-top with a value of 10px.
That helps to balance the border position but increases the height of each submenuitems … and the overall submenu height.
Visually not so aesthetic.
Then I tried the following:ul.children > li +li:after {
content : “”;
position: absolute;
left: 15px;
bottom: 0;
height: 1px;
width: 80%;
border-bottom: 1px groove black;
}This gives a well centered border but it does NOT show on the first (top) submenu items.
Thanks to let me know if you have any idea on how to solve this.Best regards,
Steph.Thanks a lot Yigit, both for the result and your quick reply!
Do you know a way to have this divider line displayed only on a portion of the bottom border (not throughout the full submenu width), as shown on the image I posted above?Thanks in advance and wish you a great day,
Steph.
Hi Basilis,
Thanks for your quick reply! The URL is: http://idetox.voyage/
Wish you a nice day,
Steph.September 16, 2015 at 10:34 am in reply to: Place an image betwen the top of page and the header #503905Hi Ismael!
Thanks a lot for fixing the problem.
I now understand where I was wrong.The topic can now be closed.
Wish you a nice day.
Steph.September 16, 2015 at 9:28 am in reply to: Place an image betwen the top of page and the header #503866Hi Ismael,
That’s very nice of you to propose the Enfold support up to that extent!
You’ll find my login details in the private content.
If you succeed in making it work, please let me know because I’m really fustrated of not understanding the reason behinf it.Thanks again so much!
Steph.September 15, 2015 at 10:35 am in reply to: Place an image betwen the top of page and the header #503167Thank you for the trick to get thepage ID Ismael!
I now have exactly the same code as you posted on Sept. 10 (with pages ID being 59 and 31 respectively).
I doesn’t help to make the code work though …I’ll keep on trying variants to see if I can make it work.
If you see another way to achieve the same goal with a different code, please let me know!Thanks a lot,
Steph.September 15, 2015 at 9:10 am in reply to: Place an image betwen the top of page and the header #503131Hi!
Anybody to highlight what’s wrong in the screenshots I posted last week (Sept. 11)?
It must be an easy one for you Enfold support team …Wish you a nice day,
Steph.September 11, 2015 at 10:28 am in reply to: Place an image betwen the top of page and the header #501508Hi Ismael!
Thanks a lot for your answer / help.
Your code lines seem quite logical to me but for some reasons, it still does not work.
Here is a screen capture of Header.php file with lines highlighted in yellow: http://i.imgur.com/ebCQz1P.jpg
I assume these lines are correctly located in the Header.php file (as per you first reply to this topic).
With is_page(), I’m applying this image on all pages of my site.
I don’t know how to get the page ID number of my static pages (I only have their permalink names).The screen capture of code lines of my Quick CSS are as highlighted in: http://i.imgur.com/Ret07ay.jpg
Just in case it is significant, the image IMET1 I’m targerting in http://idetox.voyage/wp-content/uploads/2015/09/IMET1.jpg
is 18Kb.Hope the screen captures might help you find out what’s wrong.
Regards,
Steph.September 10, 2015 at 2:29 pm in reply to: Place an image betwen the top of page and the header #501039Hi Team!
I can’t imagine my issue to be of any problem for you guys …
Maybe my topic has gone down the topic list since yesterday!I suspect there is a syntax error somewhere in one on these 2 code lines, maybe more likely in the one added in header.php:
<div class=”custom-background-image container_wrap”></div>I searched on the web but can’t fing anything syntaxed container_wrap …
Thanks in advance for your precious help!
Steph.September 9, 2015 at 12:17 pm in reply to: Place an image betwen the top of page and the header #500331Hi Ismael,
Your explanation is very clear but I can’t get it to work!
Below is a summary of what I’ve done following your advice (to get just 1 image for all pages):a.) In header.php, I’ve added the follwing: <div class=”custom-background-image container_wrap”></div>
b.) Then in Enfold>General settings I’ve added the following Quick CSS code line:
.custom-background-image { background-image: url(http://idetox.voyage/wp-content/uploads/2015/09/IMET1.jpg); }IMET1.jpg is the file name of my image in my library.
I’ve tried also to write background-image: url(IMET1.jpg) and then background-image: url(“IMET1.jpg”)
But that too doesn’t work.I must be missing a very simple stuff to get it correct and working but your help is very much appreciated!
Regards,
Steph.September 8, 2015 at 3:52 pm in reply to: Place an image betwen the top of page and the header #499948Thanks Yigit!
1- Concerning your first code line to target the image, I understand that I should insert this line in the Quick CSS but there is something missing.
Indeed, once we have the class element custom-background-image, how do we link it with an image in the Media Library?2- Thanks also for the 2nd part of your reply to indicate which page shoud receive this custom-backgroud-image.
I assume I have to copy this code lines in the header.php file, replacing the one Ismael provided. Let me know if I’m wrong.
Now, what should be the code to ahve a DIFFERENT image (same size) for each different page?
(There would be a total of 7 different images, 1 different for each parent page).
Should your piece of code become something like this:<?php
if(is_page(59)){
echo ‘<div class=”custom-background-image1 container_wrap”></div>’;
}
if(is_page(99)){
echo ‘<div class=”custom-background-image2 container_wrap”></div>’;
}
?>Thank you once more for your light,
Steph.September 7, 2015 at 8:46 am in reply to: Place an image betwen the top of page and the header #499105Hi Ismael,
Thanks for your reply.
I’ve added your suggested line codes in Header.php fileWhat would be the Quick CSS code lines I should add to select and apply the image in this container on top of Header?
And is there a way to apply a specific image in this container for each of my parent pages?Thnaks in advance!
Regards,
Steph.September 4, 2015 at 5:11 pm in reply to: Place an image betwen the top of page and the header #498502Hi Elliot, thanks for replying!
The link to the page is: http://idetox.voyage/testmenu1/
The desing I would like to reached is as shown on this image: http://i.imgur.com/lu24LCw.jpgThanks in advance for your advice!
Steph.
September 3, 2015 at 2:25 pm in reply to: Create a gap between Header and main content that shows Body image backgroud #497638Hi Andy,
I’m using IE 11.
Thanks for your link, I’ll investigate it to see how I can make the design comply with this browser.I greatly appreciate all the help/support you provided me to move forward with my design.
I think we can now close this topic.
Let me know how to proceed I case it should be done from my side.Thanks again!
Steph.
September 3, 2015 at 10:42 am in reply to: Weird coding lines showing on top of all my pages #497552For some unknown reasons, the issue mentionned in my previoux post no longer exists / shows on the screen …
So this item can be closed.Best regards,
Steph.
September 2, 2015 at 2:17 pm in reply to: Create a gap between Header and main content that shows Body image backgroud #497106You’re right, that seems a bit surprising …
I did clean up the cache and several hard refresh on IE and didi not help!
Below is all the Quick CSS code I have for my site.
Let me know if you see any coding lines appart from yours that might trigger this weird stuff with IE and Edge browser:.home #main {
margin-top: 0px;
margin-bottom: 0px;
}div#header_main {
height: 50px;
margin-top: 70px;
margin-bottom: 10px;
}
strong.logo {
top: -60px;
}
nav.main_menu {
top: -43px;
}#top .av_header_glassy.av_header_transparency #header_main {
border-color: rgba(255,0,255,0.25);
background-color: rgba(0,0,0,0.5);
border-radius: 5px;
}Thanks you!
Steph.September 2, 2015 at 12:44 pm in reply to: Create a gap between Header and main content that shows Body image backgroud #497025Andy,
I had already tried this before and it did not work (leading to this squeezed main content area on the right side of my boxed layout)
I’ve tried it again but on another browser than IE and it works perfectly on Chrome, Opera!
Thanks a lot for your patience.If you have any idea on why it does this issue on IE (and Edge browser), and how this can be avoided, please let me know.
You can see the difference yourself between Chrome and IE at: https://idetox.voyage/testmenu1/Thanks again,
Steph.
September 2, 2015 at 11:37 am in reply to: Create a gap between Header and main content that shows Body image backgroud #496992Andy,
To compare the 2 situations:
– The page with the minimum gap between header menu and main content area (not “squeezed”) is as shown at https://idetox.voyage/testmenu1/
– The page with the main content area being “sqeezed” on the right side of my boxed layout is as shown in image http://i.imgur.com/L4XMSGm.jpg
On this image, we can see that there is no longer a gap between the header menu and the main content (squeezed) area.The mockup I would like to achieve is as shown on http://i.imgur.com/ALh99gj.jpg
Thanks in advance!
Steph.September 2, 2015 at 10:08 am in reply to: Create a gap between Header and main content that shows Body image backgroud #496949Hi Andy,
With this one I can increase the gap between the header menu and the main content area.
I now see that my formulation yesterday was not clear enough because I actually would like the opposite: decrease this gap (if possible)I then tried decreasing the pixel value of margin-bottom (in div#header-main) and I can’t go below 36px.
If I go below 36 px (with all other values kept the same), I get the same squeezing as shwon in http://i.imgur.com/L4XMSGm.jpg
With 36px, the gap height is the same as if I remove the code line margin-bottom: 36pxAll my apologies for not being explicit enough on my intent.
Thanks in advance for your advice,Steph.
September 1, 2015 at 11:23 pm in reply to: Create a gap between Header and main content that shows Body image backgroud #496766Thanks for your quick reply Andy, your code worked very well!
I played a little bit with the values to adjust the different heights and postions to fit well with current design/data and reached the following:div#header_main {
height: 50px;
margin-top: 70px;
}
strong.logo {
top: -60px;
}
nav.main_menu {
top: -43px;
}The only thing I can’t adjust with these values is the height of the gap between the header menu and the main content area.
There seems to be a constant value of someting like 20px between the border of the menu and the Main content area border.
If I try to go below by increasing the height (of the div#header_main), it squeezes my main content area on the right side as show with this image http://i.imgur.com/L4XMSGm.jpg
If I also increase the height of the header of the same amount (in Enfold > Header), then it does not happen because the gap value is kept the same.Thanks in advance to let me know if I did miss something to adjust this gap.
Steph.
September 1, 2015 at 7:12 pm in reply to: Create a gap between Header and main content that shows Body image backgroud #496640Andy, please let me know if the following mockup is clear enough: http://i.imgur.com/fKt2UNP.jpg
Thanks!
Steph.
September 1, 2015 at 6:19 pm in reply to: Create a gap between Header and main content that shows Body image backgroud #496598Hi Andy,
Thanks for the code to avoid the margin on home page. It works just perfect!
As for the second question: my logo is already in a transparent PNG format as it shows on my home page http://idetox.voyage/
(Actually both the logo and the menu below it are transparent and set as such in “Header visibility and transparency” of the page configuration).I would like to have the same transparency of the area where the logo sits (but not for the menu strip just below it) on all the other pages.
Right now for example, if you look at the sample page http://idetox.voyage/testmenu1/ You’ll see that both the logo area backgroud and the menu backgroud below it are grey. I would like the grey background color to stay but the background of the logo area above to be transparent (not grey) so that is shows the body backgroud image below. At leat if possible …I hope my description is clear enough …
Thanks in advance for your guidance,
Steph.
September 1, 2015 at 9:31 am in reply to: Create a gap between Header and main content that shows Body image backgroud #496327Hi Ismael!
Thanks for your reply.
It indeed creates the gap under the header when the header is not sticky.I have a fullscreen slider on my home page and it also creates a gap here, showing the backgroud image.
What would be your suggestion to have this gap on all my pages BUT my home page with this fullscreen slider?Second question : in the Header configuration of having the Logo above and menu below, how can I have a transparent backgroud where my logo image sits (so that it shows the Body backgroud image below) and a non transparent background color for the menu?
Thanks in advance,
Steph.August 31, 2015 at 3:53 pm in reply to: Create a gap between Header and main content that shows Body image backgroud #495911Hi Guys,
I can’t imagine my request being too difficult for you to answer.
Please let me know if the image posted on August 26th is not clear enough.
Thanks again for your help,Steph.
August 29, 2015 at 9:12 am in reply to: Create a gap between Header and main content that shows Body image backgroud #495242Hi Ismael,
I don’t understand as it works on my side. I also tried it on several devices …
Have you tried http://idetox.voyage/ and then access the “testmenu1” page via the header menu?Thanks in advance to let me know,
Steph.August 28, 2015 at 9:20 am in reply to: Create a gap between Header and main content that shows Body image backgroud #494689Hi Rikard,
Now you should be able to access the page.
Sorry, I forgot to remove the maintenance mode.
Thanks,
Steph.August 27, 2015 at 4:33 pm in reply to: Create a gap between Header and main content that shows Body image backgroud #494298Not sure the link went through:
http://idetox.voyage/testmenu1/August 27, 2015 at 3:25 pm in reply to: Create a gap between Header and main content that shows Body image backgroud #494216 -
AuthorPosts