Theme editor



Mobile logo header

How To Mobile logo header

thxf.org 

Administrator
Staff member
Admin
Thread owner
Would you like to have a mobile header with logo like this?

cxf_mobile_logo_demo-gif.gif



As you can see you can have a mobile header, but when you scroll the logo will show in the navigation.

To achieve this add code below to extra.less template:

Less:
/* [cXF] Mobile logo header */
@media (max-width: @xf-responsiveMedium) {
.has-js .p-header {
display: initial;
}
.p-header-logo {
max-width: 100%;
margin: 0 auto;
}
.p-header-logo.p-header-logo--image img {
max-height: 80px;
}
.has-js .p-nav-smallLogo {
opacity: 0;
transition: all .25s ease;
}
.p-navSticky.is-sticky .p-nav-smallLogo {
opacity: 1;
transition: all .25s ease;
}
/* to hide icons in header if you're using [cXF] Icons in Header add-on */
.cxf_icons_header_container {
display: none;
}
}
/*****/

 

Attachments

  • cxf_mobile_logo_demo-gif.webp
    cxf_mobile_logo_demo-gif.webp
    322.3 KB · Views: 340


Similar threads

thxf.org ได้ส่งไฟล์ใหม่: [XenGenTr] Editor Logo [English] - This plugin allows you to add your site's logo to the editor. [XenGenTr] Editor logo This plugin allows you to add your site's logo to...
Replies
0
Views
489
ทำโลโก้เขย่า logo shake ทำง่ายดังนี้ครับ ไปที่ extra.less แล้วเพิ่มโค๊ดด้านล่างเข้าไป แล้วบันทึกจะได้แบบ thxf.org เลยครับ ปล.สั่นช้าเร็วแก้ที่ 4.72s เลยครับ
Replies
0
Views
812
  • Sticky
  • Article Article
With the exciting release of vBulletin 6 on the way, vBulletin 5 Connect and vBulletin Mobile Suite will begin the sunsetting process. Please see below for important End of Life details for these...
Replies
0
Views
523
  • Article Article
vBulletin Mobile Suite 2.10 Changes Mobile Suite 2.10 is available to be built via the Mobile Publisher. Mobile Suite 2.10 is predominantly a bug-fix release. Resolved Issues Increase Android...
Replies
0
Views
462
  • Article Article
Mobile Suite 2.9 is available to be built via the Mobile Publisher. Mobile Suite 2.9 is predominantly a bug-fix release. The google admob library was updated which now requires the Ad App ID to be...
Replies
0
Views
658


Back
Top Bottom