faedah jaya Posted September 30, 2018 Share Posted September 30, 2018 Hello, I want to use the mydomain.com link without index.php How do I delete the /index.php mydomain.com/index.php link on breadcrumbs? <!--Begin Breadcrumbs--> <section id="breadcrumbs"> <div class="container"> <div class="row"> <div class="col-lg-8 col-md-8 col-sm-7 col-xs-12" id="xshide"> <p><i class="fas fa-home"></i>{$breadcrumbnav|replace:'Portal Home':'Home'|replace:' > ':'<i class="fas fa-angle-double-right"></i>'}</p> Thank-you! 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted October 1, 2018 Share Posted October 1, 2018 (edited) Lazy way with CSS: .breadcrumb li:first-child { display:none; } .breadcrumb li:nth-child(2):before { content:" "; } More correct way with an action hook: <?php add_hook("ClientAreaPage", 1, function($vars) { unset($vars['breadcrumb'][0]); // Removing first breadcrumb from array return array("breadcrumb" => $vars['breadcrumb']); }); Same result. Edited October 1, 2018 by Kian 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.