Home › Forums › Weaver Xtreme Theme › How to center the Logo in the Header
- This topic has 7 replies, 3 voices, and was last updated 2 years, 5 months ago by
User.
-
AuthorPosts
-
March 16, 2024 at 01:49 UTC - Views: 69 #74423
Rehnfield
ParticipantHey,
i tried several hours to just align the custom Logo to the center in the header. When i use the left in the Site title and tagline Settings i can manually adjust it by using site title left margin, but then its not responsive for mobile view.
i tried also using css like
#site-title img.site-title-logo{margin-left:auto;margin-right:auto;} or “align:center;”
but it didnt work.
I couldn’t find any answers here in the forum or via google. Maybe the problem is just too easy so nobody asked yet

thank you in advance!
March 16, 2024 at 16:17 UTC - Views: 67 #74424User
ModeratorMarch 22, 2024 at 14:48 UTC - Views: 61 #74460Rehnfield
ParticipantWow, that worked perfectly fine! Thank you so much!
im also wondering how to make the logo smaller on mobile devices. i triedis-mobile #site-title img.site-title-logo{max-width:50%;}
in the same place, but it just doesnt seem to work.
March 22, 2024 at 15:20 UTC - Views: 43 #74461User
ModeratorIf you only want a smaller size on phone, use
.is-phoneinstead of.is-mobileand instead of{max-width:50%;}try{height:30.0em;}or{height:30px;}Regards!
March 26, 2024 at 16:48 UTC - Views: 29 #74465Rehnfield
ParticipantHm, that doenst seem to work on Phone. My current CSS Code is:
#site-title img.site-title-logo{display:block;margin:0 auto;}
.is-phone #site-title img.site-title-logo{height:10px;}i now have the code written in Design->Weaver Xtreme Admin -> Main Options -> Font & Custom -> Custom CSS-Rules
March 26, 2024 at 16:49 UTC - Views: 32 #74466Rehnfield
ParticipantHm, that doenst seem to work on Phone. My current CSS Code is:
.is-phone #site-title img.site-title-logo{height:10px;}
i now have the code written in Design->Weaver Xtreme Admin -> Main Options -> Font & Custom -> Custom CSS-Rules
March 27, 2024 at 00:23 UTC - Views: 24 #74467scrambler
ModeratorStrange, because I do not see the rule in your custom CSS Rules.
If the rule is really in the Theme Custom CSS Rule box, Try clearing all caches (Plugin, cloudflare…)
Also paste the block of rules from your theme Custom CSS Rule box here, at least the 2 before and the two after.
Right now here is what I see around the first rule discussed
.custom-logo-link {
display: block;
float: left;
margin-right: 2em;
max-width: 100%;
margin-top: 1%;
margin-left: 1%
}#site-title img.site-title-logo {
height: auto;
padding-right: 1%
}.custom-logo {
max-width: 100%
}March 27, 2024 at 02:31 UTC - Views: 19 #74468User
ModeratorThe only
is-phoneuse I see is:.is-phone #site-title img.site-title-logo{height:150px}at the end of
< style id ='weaverx-style-sheet-inline-css' type='text/css' > -
AuthorPosts
- You must be logged in to reply to this topic.

