Có một thực tế là, menu cấp 2 của Flatsome là kiểu vertical 1 cột như bình thường, không vấn đề gì. Tuy nhiên, menu cấp 3 trở đi thì nó tự động chia nhiều cột bao gồm tên trình đơn menu và các sub-menu theo cột của nó. Việc chia cột như vậy cho cảm giác rất gọn gàng và khoa học đối với điều kiện tất cả các trình đơn menu đều có sub-menu. Ngược lại, dù chỉ 1 trong số các trình đơn menu không có sub-menu thì nó gần như là bị lỗi, và nó hiển thị cực kỳ xấu. Ví dụ như hình dưới đây:
Trong bài viết này, mình sẽ hướng dẫn các bạn sửa CSS để menu đa cấp của theme Flatsome có thể hiển thị đẹp hơn, hoặc cơ bản là làm cho nó hiển thị kiểu vertical menu như bình thường chúng ta hay sử dụng nhé!
Bài viết dựa trên kinh nghiệm và công việc thực tế, sử dụng theme Flatsome và WordPress 4.9.8. Do đó, bài hướng dẫn phù hợp 100% cho các bạn làm web sử dụng theme Flatsome. Còn những theme khác thì có vẻ như không hoạt động được!
Bước 1: Thêm CSS vào tùy chỉnh CSS của theme
Copy toàn bộ đoạn code CSS sau vào phần tùy chỉnh CSS của theme. Quản trị > Giao diện > Tùy chỉnh > Style > Custom CSS > Custom CSS:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
.nav-dropdown>li.nav-dropdown-col{display:block} .nav-dropdown{border:1px solid #ddd; padding:0} .nav-dropdown .nav-dropdown-col>a, .nav-dropdown li a{font-weight:normal !important; text-transform:none !important;font-size:15px; font-weight:500} .nav-dropdown .nav-dropdown-col>ul li:hover{background:#db0000} .nav-dropdown-default>li:hover>a, .nav-dropdown .nav-dropdown-col>ul li:hover>a{color:white} .nav-dropdown-default>li:hover{background:#fbae3c} .nav-dropdown-default>li>a{border-bottom:0 !important}.nav-dropdown-has-arrow li.has-dropdown:before{border-width: 10px; margin-left: -10px;} .nav-dropdown .nav-dropdown-col>ul{border: 1px solid #d2d2d2;margin-top:-40px;box-shadow: 2px 2px 5px #828282;display:none;position: absolute; left: 100%;z-index: 9;background: white;min-width: 240px;} .nav-dropdown>li.nav-dropdown-col{width:100%;border-right:0} .nav-dropdown .nav-dropdown-col>ul li a{padding:10px; text-transform: none;color:black} .header-nav li.nav-dropdown-col:hover >ul{display:block !important} |
Trong đoạn code CSS trên, mình đã trang trí menu đa cấp cho theme Flatsome theo tông cam – đỏ. Do đó, nếu các bạn thấy ưng thì có thể dùng được luôn. Ngược lại, các bạn tìm sửa thuộc tính background:mã_màu trong phần mình đánh dấu dưới đây:
Trong đó:
- Màu xanh: mã màu nền của trình đơn menu cấp 2 khi rê chuột vào.
- Màu vàng: mã màu nền của trình đơn menu cấp 3 khi rê chuột vào.
Bước 2: Save Change
Các bạn Save Change/ Apply Change để xem thành quả nhé. Hy vọng các bạn làm đúng theo hướng dẫn và có thể sửa được sự khó chịu của menu cấp 3 trên theme Flatsome nhé! Chúc các bạn thành công.
most popuВlar free casiВno slots pompeii slots all slots casino Nn38HDN3NGG
Pingback: viagra tablet buying low cost
cialis cheapest lowest price
liberty slots slot machines new online casinos Nn38HDN3NGG
free slots vegas free slots vegas world class casino slots480 Nn38HDN3NGG
chumba casino free slots no registration caesars slots free casino Nn38HDN3NGG
Pingback: cialis logo australia
fast cash loans online
casinos online free online casino totally free slots no download Nn38HDN3NGG
my vegas slots las vegas free slots free slots no download no registration Nn38HDN3NGG
vegas free slots online slots lounge online casino reviews Nn38HDN3NGG
Pingback: sildenafil 100mg cheap
free penny slots online casino no deposit free welcome bonus bigfish casino online games Nn38HDN3NGG
cialis tablets for sale australia
buy diflucan medicarions: diflucan – diflucan 150 mg capsule
Instagram da popüler olmak ve minimum fiyatlara ucuz takipçi satın al seçeneğini
kullanmak artık çok kolay! Hemen sitemize giderek
instagram ucuz takipçi satın alabilirsiniz
how to buy cialis without a preion cialis paypal online how to get cialis in canada
spot loans online
price of cialis daily cheapest generic cialis online online cialis prescription canada
Clubhouse Takipçi Satın Al hemen teslim clubhouse takipçiler
Whoa! This blog looks just like my old one! It’s on a totally different subject but it
has pretty much the same layout and design.
Outstanding choice of colors!
cialis canada fast shipping 20 mg cialis best price cheap cialis generic online
buy cialis online now cialis price in mexico brand name cialis cheap
cash advance payday loan
cialis online cheap ordering cialis online buying cialis
when to take viagra for best results viagra dosage instructions online prescription for viagra
casino blackjack ruby slots charlestown races and slots
online casinos for us players paradise casino mohegan sun free online slots
canada pharmacy 24h
Very good article! We are linking to this particularly
great content on our site. Keep up the good writing.
canadian pharmacy discount coupon pharmacy rx world canada best canadian online pharmacy
play free mr cashman slots foxwoods online casino pch slots tournament
It’s perfect time to make some plans for the longer term and it is time to be happy.
I’ve read this submit and if I may I want to counsel you few interesting things
or suggestions. Maybe you can write next articles referring to this article.
I wish to learn more issues about it!
canadian family pharmacy online pharmacy quick legit mexican pharmacy
over the counter ampicillin ampicillin 500 tablet 315 ampicillin
ampicillin brand name canada can you buy ampicillin over the counter ampicillin capsules price
I am sure this piece of writing has touched all
the internet people, its really really pleasant piece of writing on building up
new web site.
slots free free slots games online free casino games slotomania
I need to to thank you for this great read!!
I definitely enjoyed every little bit of it. I have you
book-marked to look at new stuff you post…
tadalafil generic sale
how to write a perfect essay v47lye college essay writers u164ot freedom writers essay m66iju
Superb, what a webpage it is! This blog gives useful information to us,
keep it up.
free slot play no download slot games with bonus spins absolutely free slots
order diflucan online uk: diflucan tablet price – where can i buy over the counter diflucan
the write stuff thinking through essays e41svf best mba essay writing service r956dl perfect college essays l19lnt
how to get zoloft zoloft 100mg tablet price zoloft best price
penny slots slot machines free games free video slots
Ahaa, its good conversation regarding this paragraph at this place at
this web site, I have read all that, so now me also commenting here.
personal loan for bad credit
loans for no credit
What’s up, I check your blog daily. Your writing
style is witty, keep up the good work!
buy tadalafil 20mg price in india
paydayloans
I’ve been browsing online more than 3 hours today, yet I by no means found any fascinating article like yours.
It’s pretty worth sufficient for me. In my opinion, if all webmasters
and bloggers made excellent content material as you did, the web
shall be a lot more helpful than ever before.
bad credit short term loans
modafinil purchase india modafinil for sale canada where to get modafinil canada
Jr83jwh38dz
I like it when individuals get together and share ideas. Great
site, stick with it!
no script pharmacy pharmacy online 365 discoun cheapest pharmacy for prescriptions
Jr83jwh38dz
amoxicillin 250 mg capsule price
cheap modafinil tablets how to get modafinil prescription canada order modafinil online usa
Jr83jwh38dz
custom essay writers t81mat how to write an analysis essay on a short story c90ewu how to write introduction in essay f30aib
Jr83jwh38dz
It’s perfect time to make some plans for the future and it’s time to be happy.
I have learn this post and if I may I desire to recommend you few interesting issues or tips.
Perhaps you could write next articles regarding this article.
I want to learn more issues about it!
tribal installment loans
ampicillin 25 g ampicillin 250 mg capsule ampicillin 100
Jr83jwh38dz
I will right away clutch your rss feed as I can not in finding your email
subscription hyperlink or e-newsletter service. Do you’ve any?
Kindly let me recognize so that I may subscribe. Thanks.
cash america loans
essay on social service e595kc should college athletes be paid persuasive essay u72bqb writing a narrative essay c62zsh
Jr83jwh38dz
I have been surfing online more than three hours today, yet
I never found any interesting article like yours. It’s pretty worth enough
for me. Personally, if all webmasters and bloggers
made good content as you did, the net will be much more useful than ever before.
essay writing service discount c75euc college personal essays s868fw how to begin a college essay m77oep
Jr83jwh38dz
installment loans for bad credit
free slots online most popuВlar free casiВno slots casino vegas world
Jr83jwh38dz
sildenafil citrate over the counter
buy doxycycline: doxycycline – where to purchase doxycycline
gsn casino slots hollywood online casino free online slots no download no registration
installment loans for poor credit
Thanks pertaining to delivering these types of substantial subject matter. http://sqworl.com/0hxos1
viagra dapoxetine reliable https://viagraclub100.com/ buy viagra in canada fast
Howdy would you mind sharing which blog platform you’re working with?
I’m planning to start my own blog in the near future but I’m having a difficult time selecting between BlogEngine/Wordpress/B2evolution and Drupal.
The reason I ask is because your design and style seems different then most blogs and I’m looking for something unique.
P.S Sorry for being off-topic but I had to ask!
canadian pharmacy service https://pharmacyclub100.com/ online med pharmacy
You’ve made some decent points there. I checked on the internet for more information about the issue and found
most people will go along with your views on this website.
compare pharmacy pr janeinvog ivermectin 400 mg https://pharmacyclub100.com/ canadian pharmacy ltd
Pingback: amoxicillin for children
why do we have to write essays x339wt https://essaywriterclub100.com/ music college essay g93dlg
cialis 10mg tablet https://cialisclub100.com/ cialis 20mg price in india
slot machine games free https://casinorealmoneydob.com/ free casino games sun moon
viagra 100mg tablet
gambling sites https://onlinecasinogamesksm.com/ gsn casino slots
lenders network
ampicillin 250mg https://buyampicillin250.com/ ampicillin for sale
Pingback: how to take amoxicillin
generic viagra best price
cheapest pharmacy to fill prescriptions with insurance https://canadianpharmacyclub100.com/ online pharmacy without prescription
house of fun slots https://casinorealmoneydob.com/ online casino – play casino games
clomid tablet: clomid generic – clomid 50mg
viagra buy india
easy payday loan online
cash in advance
Pingback: chlamydia azithromycin dose