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 我的数据无法存进链表里
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端