Forum Replies Created
-
AuthorPosts
-
August 6, 2021 at 2:27 am in reply to: Use both main and alternate/transparent meta and main menus on specific pages #1314729
Hello! Sorry for the delay. I’ve hacked things a bit but one item remains – when mobile, the logo reverts back to the non transparent version. Here’s all of my code (functions.php and css), to help others as well:
functions.php
//-------------------------------- // hack to use trans logo //-------------------------------- function custom_script() { ?> <script> (function ($) { $(window).load(function() { $("#top.page-id-932 #header").addClass('av_header_transparency'); $('#top.page-id-932 .logo').append('<span class="subtext"><img src="https://oneoakaustin.com/wp-content/uploads/2021/07/One-Oak-Bouldin-Creek-logo-transparent.svg" class="alternate" alt="Corporate logo" title=""></span>'); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_script');
and my css:
/************************************************** logo swap hack in functions.php addition - home option page - 932 #header_main bg needs to be transparent **************************************************/ #top.page-id-932 #header.av_header_transparency, #top.page-id-932 .av_header_transparency #header_main { /* background: rgba(0, 0, 0, 0.5)!important; */ } /* force main bg on scrolling */ #top.page-id-932 .header_color .header_bg { /* background: #4a4747!important; dk mushroom */ } /* force pancake lines closed */ #top.page-id-932 .header_color .av-hamburger-inner, #top.page-id-932 .header_color .av-hamburger-inner::before, #top.page-id-932 .header_color .av-hamburger-inner::after { background-color: #c6b193 !important; /* taupe */ } /* force widget custom reg button */ #top.page-id-932 #header.header_color #header_main .widget a.buW2 { border: 1px solid #f2efee !important; /* off white */ color: #f2efee !important; /* off white */ background: #4a4747!important; /* dk mushroom */ margin-right: 50px !important; margin-top: 43px !important; width: 300px !important; } /* force pages to have a different bg after scrolling */ .page-id-932 #header_main { background: #4a4747!important; /* dk mushroom */ } /* custom main menu for alternate - before and after scrolling */ #top .page-id-932 .av-main-nav>li.current-menu-item>a>.avia-menu-text, #top .page-id-932 .av-main-nav>li.current-page-ancestor>a>.avia-menu-text { color: red!important; } #top .page-id-932 .av-main-nav li a:hover .avia-menu-text, #top .page-id-932 .av-main-nav li.current-menu-item > a > .avia-menu-text { color: blue !important; } #top .page-id-932 .av-main-nav>li.current-menu-item>a>.avia-menu-text, #top .page-id-932 .av-main-nav>li.current-page-ancestor>a>.avia-menu-text { color: blue !important; } /* smallest portrait phones *************************************************/ @media only screen and (max-width: 767px) { /* start max 767 */ #top.page-id-932 .responsive .logo img, .responsive.html_mobile_menu_tablet #top.page-id-932 .av_header_transparency.av_alternate_logo_active .logo a > img { height: 50px !important; width: auto!important; max-width: 100%; display: block; margin: 0px !important; /* max-height: 120px!important; */ } /* end max 767 */ }
July 20, 2021 at 7:51 pm in reply to: Make control dots smaller in easy slid – they seem to be stuck on a certain size #1310927Perfect! Thank you so much! I spent hours on this., so I appreciate your help immensely.
July 6, 2021 at 11:30 am in reply to: Use both main and alternate/transparent meta and main menus on specific pages #1308917Hi, Mike
I constantly watch my output for errors, so that’s not the issue. I’ve continued to work on this and for the about page on scroll the text and logo go to the non transparent styling, but I did manage to set the background to remain black. The key here is getting the transparent logo to remain on scroll… I’ll keep pulling code but if you have any insight it would be most appreciated :)
July 5, 2021 at 8:38 pm in reply to: Either fade out or scroll more quickly when clicking on a 100% high element #1308834Hello, Ismael
The question relates to the scroll down arrow in the first section on home, which has an id of #csmainanim. It’s simply going to the next section, so no anchor required, since this is a default action.
So, to be really clear:
Hhen the user clicks on the scroll down arrow on home that is located in the section with id #csmainanim, Id like to :
1) speed up the scroll time
2) Fade my entire section to white or transparent.Thanks, again
July 4, 2021 at 4:38 pm in reply to: Use both main and alternate/transparent meta and main menus on specific pages #1308651Hi, Mike
Mot sure… The mobile menu was there and now it’s gone. There are so many variables now, more so than ever, which doesn’t help matters.
Yes, I was hoping to have the mobile menu be sticky and visible on scroll for the home page only, and then just sticky for all other pages. Just getting it to appear again would be fine at this point.
I’m not sure why comments and empty rules contribute to any errors, if they are not applied? I’m not formally trained in css so the comments are really helpful, and I leave in the empty rules in case I need them again.
It would be a tall order to do what you suggest with my typically tight deadlines, so I guess I’ll just have to sort this out myself.
You’ve been helpful but I have other posts from days ago that have yet to be replied to, so I’m a bit frustrated about meeting my deadlines :)
July 3, 2021 at 10:12 pm in reply to: Use both main and alternate/transparent meta and main menus on specific pages #1308604Sorry, I don’t mean to bump this abut another really crucial issue has arisen – the entire menu disappears on mobile! I’ve tried to play around and get it to show in @media only screen and (max-width: 989px) –
/* show main menu */ #top .av_header_transparency { display: visible !important; min-height: 200px!important; background: red !important; position: fixed; top: 0; }
No luck. It seems to load and then go all black…
July 3, 2021 at 8:48 pm in reply to: Use both main and alternate/transparent meta and main menus on specific pages #1308596Ok, this is a much better option! We are getting close but it’s not working properly yet. I’ve set the class to the Services page as well.
1) Not always, the About page goes white on scroll. Eg, I click on the menu link and scroll and it goes white. If I hard refresh without leaving the page it remains black.
2) The newly class assigned Services page is showing an alpha of black before scrolling, then white on scrolling. If I hard refresh it goes black on scroll, but still with an alpha, so not opacity 1. I’m guessing it’s some other css that is effecting this?
As for the fw sub menu, I decided to keep working with this option because I couldn’t get the logo or the fx to display. I also really needed to move forward and can’t keep waiting days for a reply, so I’ve removed it for now.
I would like to know where to speed up the scroll speed on the 100% height home page, which has an id of #csaltanim, though. And older post referenced a location where it no longer exists. the home page currently has a static svg where the animated gif would go.
Another great feature would be to have #csaltanim fade to white or transparent – is that possible as well, please? Thanks, again :)
July 2, 2021 at 6:00 pm in reply to: Use both main and alternate/transparent meta and main menus on specific pages #1308534Hello, Mike
so my guess about resolving question 1) was applicable. It’s not a huge site so I can live with that, but assume I’ll have to repeat the functions PHP for each page that I want in black, correct, or can I set a variable and assign page-ids?
As for question 2), I’m playing around with using a fullwidth sub menu but can’t figure out how to add in the logo at left, and also include the fx border on hover/active. Would it be easier to place the animated gif above the header with some code, or try to finish off styling the fw submenu?
Thanks, again :)
Hello, Ismael
sorry, but that is not at all what I need help with. The sub menu is just me moving forward, trying to resolve this on my own. As above, I want to be able to add the fx bottom border to my fullwidth sub menus, just like the default one in the header, please :)
June 15, 2021 at 5:39 pm in reply to: Vertical dot menu – can't remove background and need to indicate active dot #1305871Sorry, but could you send me the css please?
June 14, 2021 at 8:52 pm in reply to: Vertical dot menu – can't remove background and need to indicate active dot #1305670Ok, so I got the active dot working myself –
#top .dots-menu .av-subnav-menu li a:focus { background: blue!important; }
Another new question – is it relatively straightforward to add in text on hover? Thanks again :)
June 14, 2021 at 7:42 pm in reply to: Vertical dot menu – can't remove background and need to indicate active dot #1305666Thank you! That worked well. The only thing left is how to target the active dot with unique styling, please :)
January 18, 2021 at 7:51 pm in reply to: Hide header logo before scrolling, then show on scrolling, on specific pages #1273434That worked perfectly! Thank you so much! You may close this, but FYI, it’s really hard to move along with work when it takes so long for support to reply. I’m still waiting for my first reply on a post from before this one. Please consider more staff in more time zones :)
December 17, 2020 at 2:34 pm in reply to: Can't import Flatiron zip file to add custom icons #1268132Please close this thread :)
December 15, 2020 at 11:12 pm in reply to: Can't import Flatiron zip file to add custom icons #1267588Worked beautifully! Too bad that wasn’t very clear on Flaticon, but thank you :)
December 11, 2020 at 7:08 pm in reply to: Add text to socket, right align (separate from copyright, but same line) #1266620December 11, 2020 at 7:07 pm in reply to: Add text to socket, right align (separate from copyright, but same line) #1266619December 11, 2020 at 1:21 am in reply to: Add text to socket, right align (separate from copyright, but same line) #1266436Sorry, that didn’t work.
This is closer but the ul of social icons are still not centered below the copyright text. I’ve added in a 2px red border to reveal position.#top .right_socket { /* position: relative; center: auto; transform: none; */ width: 100% !important; text-align: center !important; position: relative; right: 47% !important; /* height: 120px; */ border: 2px solid red; }
December 10, 2020 at 9:23 pm in reply to: Add text to socket, right align (separate from copyright, but same line) #1266392Hello
This is great, but I would like to center the ul in the push-right div – it’s a ul of social icons and I can’t center it. Please help! Thank you.
sorry, the pwd was changed – correct one is in private. I’m hoping to have this resolved in the next day or two so a look soon would be most appreciated :)
OO\ops! Forgot the info in private!
November 29, 2020 at 4:46 am in reply to: Opacity of transparent header font and logo same as background with css #1263724Good here; thank you, Mike!
November 29, 2020 at 2:30 am in reply to: Opacity of transparent header font and logo same as background with css #1263720That did it! Thank you so much :)))
November 28, 2020 at 11:45 pm in reply to: Opacity of transparent header font and logo same as background with css #1263714I just posted about the text and logo being washed out by the bg. Please have a look :)
November 28, 2020 at 11:42 pm in reply to: Opacity of transparent header font and logo same as background with css #1263712Sorry, there is still a problem. When I use a 0.7 opacity band both the menu text and the logo are picking up on that, so they are washed out. Can I perhaps change the z-index to make sure that those items are not fade by the background?
November 28, 2020 at 11:33 pm in reply to: Opacity of transparent header font and logo same as background with css #1263709Ok, thanks. Here’s some code to help others style the text states more, below. I’ve added in both options for before scrolling bgs, in case someone also wants to have flexibility :)
#header.av_header_transparency { opacity: 0.7; background: #000; /* background: transparent; */ } /* transparent text before scrolling */ .av_header_transparency #avia-menu > li > a { color: #fff !important; text-shadow: 1px 1px 2px #000; } .av_header_transparency #avia-menu > li > a:hover { color: greenyellow !important; } .av_header_transparency #avia-menu > li.current-menu-item > a, .av_header_transparency #avia-menu > li.current_page_item > a { color: greenyellow !important; }
November 27, 2019 at 11:55 pm in reply to: Strange right margin using Envira gallery on portrait phone #1160836Yes, I’m working on a fix with the Envira person, and will post my findings when it is resolved :)
November 22, 2019 at 10:38 pm in reply to: Strange right margin using Envira gallery on portrait phone #1159346Hello, Victoria
It does seem quite specific to Android phones of a certain size –
http://latitude65.ca/images/oddRightMargin.png
From this post –
November 11, 2019 at 10:52 pm in reply to: Adding captions underneath featured images on posts #1155771That worked perfectly! Thank you, Ismael :) You can close the post.
That worked perfectly! Thank you so much :) All done!
-
AuthorPosts