Created
April 6, 2023 06:56
-
-
Save akther80/d303f4108e2cab0faba83f8d4e10794d to your computer and use it in GitHub Desktop.
MyTravel - Make list view ad default
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( ! function_exists( 'mytravel_shop_view_switcher' ) ) { | |
/** | |
* Archive view switcher | |
*/ | |
function mytravel_shop_view_switcher() { | |
?> | |
<ul class="nav tab-nav-shop flex-nowrap mt-4 mt-md-0" id="pills-tab" role="tablist"> | |
<li class="nav-item"> | |
<a class="nav-link font-size-22 p-0 active" id="list-view-tab" data-toggle="pill" href="#list-view" role="tab" aria-controls="list-view" aria-selected="true"> | |
<div class="d-md-flex justify-content-md-center align-items-md-center"> | |
<i class="fa fa-list"></i> | |
</div> | |
</a> | |
</li> | |
<li class="nav-item"> | |
<a class="nav-link font-size-22 p-0 ml-2 " id="grid-view-tab" data-toggle="pill" href="#grid-view" role="tab" aria-controls="grid-view" aria-selected="false"> | |
<div class="d-md-flex justify-content-md-center align-items-md-center"> | |
<i class="fa fa-th"></i> | |
</div> | |
</a> | |
</li> | |
</ul> | |
<?php | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment