Indytheme Support
ถาม - ตอบ => Smart Variety => ข้อความที่เริ่มโดย: smart-variety26 ที่ 17/04/20 เวลา 15:37 น.
-
พอดีผู้ใช้ เขาว่าดูมันเล็กไปครับ ผมเข้าไปดูใน template-parts/header-lg.php มันเก็บไว้ใน $logo อยากกำหนด width, hieght เองครับ
-
ขนาด logo ขึ้นอยู่กับขนาดรูปจริงที่อัปไปครับ โดยความกว้างจะกว้างได้มากที่สุด ไม่เกิน 1 ส่วน 3 ของ header เพราะฝั่งซ้่ายเว้นไว้ให้ปุ่ม socials ส่วนด้านขวาเว้นไว้ใส่ช่อง search
<div class="row">
<div class="col-4 flex-center-y">
<?php Theme_Parts::get('socials-follow') ?>
</div>
<div class="col-4 headerbottom__logo flex-center">
<a href="<?php echo get_home_url(); ?>">
<img src="<?php echo $logo ?>" alt="logo">
</a>
</div>
<div class="col-4 flex-center-y justify-content-end">
<?php Theme_Parts::get('search-form') ?>
</div>
</div>
ลองเปลี่ยนอัตราส่วน col ดูครับ จาก col-4 col-4 col-4 เป็น col-3 col-6 col-3
<div class="row">
<div class="col-3 flex-center-y">
<?php Theme_Parts::get('socials-follow') ?>
</div>
<div class="col-6 headerbottom__logo flex-center">
<a href="<?php echo get_home_url(); ?>">
<img src="<?php echo $logo ?>" alt="logo">
</a>
</div>
<div class="col-3 flex-center-y justify-content-end">
<?php Theme_Parts::get('search-form') ?>
</div>
</div>