Forum Replies Created

Viewing 30 posts - 91 through 120 (of 430 total)
  • Author
    Posts
  • One more quick question, please. The 1px bottom border disappears below the main menu on scroll but is still there before scrolling. Please advise.

    /* remove 1px hor line with scroll after scrolling - not before! */
    
    #header_meta, #header_main.container_wrap {
      border-bottom: none;
      border: none; 
    }

    Perfect, thank you so much! I see that the css needs to be in the same order :)

    in reply to: Change active secondary menu item background color #1073677

    So sorry for the confusion but that’s not my site! I jumped on this post to ask the same question, but using menu-item-XX to target a specific button..
    On the contact page (in private content) I want the ‘FREE CONSULTATION’ button in the secondary menu to be another color when active. It’s menu-item-748.

    Thanks, again :)

    in reply to: Change active secondary menu item background color #1072118

    Sorry, I have tried this as well –

    #top #header #menu-item-748 .current_page_item > a {
    	background: blue !important;
    	color: #fff !important;
    }
    in reply to: Change active secondary menu item background color #1072117

    Hello
    I’m trying to change the background color of just one custom button in the secondary menu when active. The button is –

    #menu-item-748

    I tried this –

    #top #header #menu-item-748 a:active {
    	background: blue !important;
    	color: #fff !important;
    }

    But to no avail. Please help me target just this one item :)

    Yes, please – sorry, I should have mentioned that. Thanks again! :)

    Thank you! Both worked beautifully. And to help others, since I set the open menu li to be aligned top, I did a small adjustment to the first item, ie, my home item –

    	 /* tweak the vertical position of the menu when open */
     
    	 #av-burger-menu-ul {
    		 vertical-align: top; /* originally middle */
    		 background: black !important; /* just to see what elemnt is targetted */
    	 }	 
    	 
    	 /* tweaks the vertical position of the open menu items under the burger x - home is menu item 23 */
    	 
    	 .menu-item-23 {
    		 margin-top: 150px !important;	 	
    	 }
    	 
     	/* or leave vertical-align as the default middle and use this */
    	
     	.av-burger-overlay-inner {
     		/* top: -140px !important; */
     	}
    in reply to: Add social and a button before burger #1039064

    That worked perfectly! Thank you so much :)

    in reply to: Add social and a button before burger #1037768

    Hello, again

    I figured it out except for one very simple question, please. I looked at the docs and added this to my functions.php in my child theme directory –

    <?php
    
    //--------------------------------
    
    // Header widget area
    
    //--------------------------------
    
    add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area' );
    function enfold_customization_header_widget_area() {
    dynamic_sidebar( 'header' );
    }
    
    ?>

    Then I created a new widget called ‘header’, and added in some basic custom HTML to create a text link –

    Register Now

    Then I added the css to style and adjust the position of the register ‘button’ –

    /* Widget text and background */
    
    #top #header #header_main .widget {
        line-height: 88px; /* tweaks the vertical height of the text */
        color: red;
        /* background: green; just to see where it sits on the screen */
    	text-align: right;
    	margin-right: 80px;
    	min-height: 150px; /* same as custom main menu height */
    }
    
    /* Widget title */
    
    #top #header #header_main .widget h3.widgettitle {
        color: #ff00ff;
    }
    
    /* Widget link */
    
    #top #header.header_color #header_main .widget a {
    	font-family: 'interstate-regular';
    	font-weight: normal;
    	font-style: normal;
    	font-size: 15px;
    	letter-spacing: 4px;
    	text-decoration: none;
    	text-transform: uppercase;
        color: #41ab97;
    	padding: 5px 15px;
    	border: 1px solid #41ab97;
    	min-width: 240px; /* using this to make all site buttons the same width */
    }
    
    #top #header.header_color #header_main .widget a:hover {
        background: #41ab97;
        color: #fff;
    }
    
    /* widget id - does the same as text & bg, above */
    
    #custom_html-6 {
    
    }
    

    It worked perfectly, but when scaling down to mobile, I’ve added in a gray background just to see what it’s doing and I’m trying to reduce the height of the widget block – I set it to 75 (half of what it is on desktop), but it’s not taking effect. Of course, I could simply hide the gray background and it’s sitting perfectly with some tweaking to the css, but I’d like to know how to target that gray area to make it a smaller height. Here’s what I have but the max-height is not working.

    I’d like to know how to target that gray to make it 75 or something close to that :)

    /************************** break point 989 *******************/
    
    @media only screen and (max-width: 989px) {
    	/* start */
    
    /* Widget text and background */
    	#top #header #header_main .widget {
    	    background: gray;		
    	    line-height: 30px; /* reduced vertical height - 88px for desktop */
    		margin-right: 60px;
    		max-height: 75px !important;  /* reduced from desktop size of 150 custom main menu height */
    	}
    
    /* end max 989 */
    }

    And then on smaller mobile I simply hide the widget –

    /************************** mobile to tablet portrait *******************/
    
    @media only screen and (max-width: 767px) {
    	/* start */
    
    	/* Widget text and background - hide register button */
    
    	#top #header #header_main .widget {
    		display: none !important;
    	}				
    
    	/* end max 767 */	
    }
    
    in reply to: Add social and a button before burger #1037325

    Hello, all! Sorry it’s been so long! It turns out that my client has decided that he doesn’t want the social icons after all, so it would just be a matter of adding one ‘REGISTER’ button before the burger menu. Guenni007, you are very helpful here but are you able to strip out the need for the social and perhaps show me a more simple way of adding just the one button?

    The site is now a work in progress (see private), but it’s the same as the screenshot.

    Thanks, again :)

    Thanks, everyone! This was very helpful. I wanted to add another bit of code to help others, since I didn;t want all of the images to be grayscale on a page, so I used this, instead, which works well –

    /* use a class called iSwap to target specific images on a specific page */
    
    .page-id-12 .iSwap a img {
    	filter: grayscale(100%);
    	-webkit-filter: grayscale(100%);
    	filter: grayscale(100%);
    }
    
    .page-id-12 .iSwap:hover a img {
    	filter: grayscale(0%);
    	-webkit-filter: grayscale(0%);
    	filter: grayscale(0%);
    }

    Ok, so you mean that I need to use element id’s for the secondary menu – that’s fine, thanks :)

    in reply to: Change secondary menu bordered, make 2 items the same width #1025659

    That definitely works, thanks, but I’d like to be able to target, say 2 bordered buttons, and 2 colored (not on my test site at the moment), so drill into that element level – this code applies to both bordered and colored. Hope that makes sense? :)

    thank you, Vinay, but that link does not include what I’m asking about, ie, how to style the bordered and colored buttons in the top/secondary menu. To be super clear, I can style the main menu as Victoria sent, above –

    #top #wrap_all .header_color #menu-item-53.av-menu-button-colored > a .avia-menu-text {
    	background-color: #000 !important;
    	border-color: #000;
    	padding: 10px 35px 10px 35px;
    	margin-left: 10px;
    	margin-right: 10px;
    }

    All I want to know is how to style more than one colored menu items the same way in the top/secondary menu, without using the item id. Hope that makes sense now. A picture wouldn’t show you anything; it’s the css to target this that I’m looking for, eg something like this –

    #top #wrap_all .what goes here to target the secondary menu .av-menu-button-colored > a .avia-menu-text {
    /* styling here */
    }

    Thanks, again!

    What I mean is how do I target the bordered/colored secondary menu items without using their specific item id? For example, if I wanted to style 3 colored items all the same way, what is the correct element in css to account for multiples?

    Thank you, again! :)

    in reply to: Change secondary menu bordered, make 2 items the same width #1024621

    Hello, Victoria

    Yes, that worked! I was trying to make it adjustable with min-width but it just wasn’t recognising that. Am I correct in assuming that it is better to target the secondary menu bordered and colored items by their id as opposed to referencing bordered or colored, like the main menu? Thank you very much!

    I commented out the styling specific to the secondary menu items, and as you can see even though ‘CONTACT’ is set to bordered and ‘REQUEST A QUOTE’ is set to colored, they show up without any styling different than the default menu items.
    Secondary menu –
    #menu-item-49 ‘CONTACT’ is bordered
    #menu-item-45 ‘REQUEST A QUOTE’ is colored

    For the main menu, I removed the styling for bordered and colored, and unique styling for both does show, unlike the seocndary menu.
    Main menu –
    #menu-item-52 ‘CONTACT’ is bordered
    #menu-item-53 ‘REQUEST A QUOTE’ is colored

    Thanks, again! :)

    Sure –
    Brodered/colored secondary & main menu items, all with a set width

    So, to be really clear, I have targetted the 2 secondary menu items by id as I can’t seem to find the right element to style the bordered/colored.

    For the main menu I can style the bordered/colored items.

    For both secondary and main I want each of the 4 items to have the same width, ie, 300px. Using min-width: 300px in both cases didn;t work. Thanks again :)

    in reply to: Validation of select element in contact form #1015894

    Oh, another note – in doing more testing it seems that this sytnax works properly, otherwise I am only seeing the first select item, so after the inital pipe and comma, then separate with commas –

    Please Select |, 8,9,10,11,12,13,14,15,16,17,18,19,20

    in reply to: Validation of select element in contact form #1015887

    Ok, I couldn’t help but think that this couldn;t work so I went back to the post I listed at the very beginning of this topic. I copied the users select text and pasted it into my form and now it works, not only does it not process the form but the borders go red on the ones left ‘inslected’. Here’s the syntax (for my site), noting that there must first be a pipe, followed by a comma, then all subsequent selections are separated by a pipe. Problem solved!!!!!!!!! :)

    Please Select |, Everyone | No one | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16

    Thanks, all!

    in reply to: Validation of select element in contact form #1015870

    Thank you, all, for this input. So, basically, validation is not possible for a select element unless there is an option for a blank first element, but it would also be good to be able to not have a blank area, so this is a bit of a conundrum.

    I modified the contact.js file, and replaced the original in the parent theme’s correct directory, cleared my cache and tried again and it’s still allowing me to submit and takes me to the thank you page, so validation is still not working.

    in reply to: Validation of select element in contact form #1014979

    Hello, Gunter

    I’ve cloned the live site and updated both WP and Enfold to the latest. I’ve added in the code and added in Jordan’s css and it’s still not working. Also, the form is still being processed when I hit the submit button without selecting a pulldown item for the 5 required select elements. Please advise. So, I still need to have –

    1) Make the select elements validation work properly – they are not being validated.
    2) A red border show up for the select elements (text filed and date picker are fine) when the submit button is hit and they have not made a selection.

    Thanks again!

    You’re correct! It was offset to the right by about 20px but I just did a screenshot and it is definitely now centered. Thank you :)

    Ok, so I almost have it – I gave the burger a margin-top –

    	.responsive #top .av-logo-container .avia-menu {
    		margin-top: 180px;
    	}

    But it’s slightly off center – especially noticeable when the menu opens and shows the list below. Please let me know what needs to be changed to get the burger centered :)

    Thanks, Ismael – the code is missing it’s first bracket –

    @media only screen and (max-width: 989px) and (min-width: 768px) {
    	/* start */
    			
    	.responsive.html_mobile_menu_tablet #top #wrap_all .av-logo-container {
        	height: 200px;
        	line-height: 200px;
    	}
    
    	/* end */
    }
    

    Now I can see the whole logo but the burger is still way up at the top, over the logo – it needs to be moved below, please :)

    Sure –
    Menu issue

    It changes to this right around 1935 pixels at 144ppi according to the size on my monitor, so when I drop it to 72ppi it comes out around 967 pixles wide.

    in reply to: Validation of select element in contact form #1011042

    Hi, Jordan
    I have set 5 select elements to be required, therefore, need validation but the user can click on submit and form gets processed, even though they are set to ‘is not empty’ for form validation. As per the other post, above, he got it to work and I need to do the same.

    in reply to: Validation of select element in contact form #1010961

    Sorry, there’s a misunderstanding – I want the select border to be red only when the submit button is clicked and the element has not been validated – the css you sent makes it red on load, not on click of the submit button.

    in reply to: Validation of select element in contact form #1010959

    Ok, thanks, that answers one of two questions. How do I make the 5 select element validate properly, please?

    in reply to: Validation of select element in contact form #1010935

    Yes, I’d like the border to go red just like the date picker and text fields. And of course make the validation work for the 5 select elements :)

Viewing 30 posts - 91 through 120 (of 430 total)