doutan3192 2017-12-27 06:57
浏览 24
已采纳

如何删除/编辑Dokan商店标签

I am using Dokan for a listings site. The core set of products that will be used are bookable products.

As such I want to rename the products field to 'Bookings'. I have digging around in the plugin template files and can find where the tabs are included in the store template but can't seem to find where the actual tabs are defined.

Any help would be awesome thanks. For reference below the code where the tabs are being included:

    <?php if ( $store_tabs ) { ?>
<div class="dokan-store-tabs<?php echo $no_banner_class_tabs; ?>">
    <ul class="dokan-list-inline">
        <?php foreach( $store_tabs as $key => $tab ) { ?>
            <li><a href="<?php echo esc_url( $tab['url'] ); ?>"><?php echo $tab['title']; ?></a></li>
        <?php } ?>
        <?php do_action( 'dokan_after_store_tabs', $store_user->get_id() ); ?>
    </ul>
</div>

I am also having an issue with the reviews page (I removed the sidebars from store.php and store-review.php in child theme folder) and reviews page now just loads header and footer of my theme).

  • 写回答

2条回答 默认 最新

  • douchun1961 2018-01-18 21:15
    关注

    Managed to figure out how to do it.

    In the dokan plugin folder navigate to the includes folder. Inside this folder there is a functions.php file.

    Search for 'dokan_get_store_tabs('

    Find and replace Products with text of your choice within this function.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题