-
AuthorPosts
-
October 30, 2019 at 10:24 pm #1152537
I’m working on a concept and stuck with the following: I’d like to get my logo centered on a desktop, but aligned left on mobile screens. The menu should be on the right on a screens. The problem is that I replaced my logo with text using this in my functions.php:
add_filter('avf_logo_subtext', 'kriesi_logo_addition'); function kriesi_logo_addition($sub) { $sub .= "LAURA DANIQUE"; return $sub; }And in quick CSS:
.logo img { display: none !important; } .logo .subtext { font-size: 38px; color: #000000; position: relative; top: 34px; } .logo i { font-size: 14px; } .logo > a { text-decoration: none; } .logo a { line-height: 20px; } .responsive #top .logo { display: block; height: 120px !important } .responsive .logo a { display: block } @media only screen and (max-width: 768px) { .subtext { font-size: 30px !important; }} @media only screen and (max-width: 480px) { .subtext { font-size: 20px !important; }} #top div .logo { float: none; position: absolute; left: 50%; z-index: 1; transform: translate3d(-50%, 0, 0); } .avia_textblock a { font-weight: bold; }Unfortunately the logo disappears on a smartphone screen and runs through the navigation menu on a tablet screen.
October 31, 2019 at 12:23 am #1152572Hey Dave,
Please provide a link to the site/page in question so we can look into this issue further.
Best regards,
Jordan ShannonOctober 31, 2019 at 12:32 am #1152576November 1, 2019 at 6:30 am #1152931Hi Dave,
Thanks for that. Please try the following in Quick CSS under Enfold->General Styling:
@media only screen and (max-width: 767px) { .logo { transform: translate3d(0,0,0) !important; } }Best regards,
RikardNovember 6, 2019 at 2:55 pm #1154301Thanks Rikard,
That worked for me!
November 6, 2019 at 9:19 pm #1154416Hi,
I’m glad this was resolved. If you need additional help, please let u know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Text as logo centered but left aligned on mobile screens’ is closed to new replies.
