• Resolved respodev

    (@respodev)


    Hi @businessdirectoryplugin,

    i’d like to modify the inner text of the following buttons : View, Edit, Delete (and also custom the css). But It doesn’t work when I rewrite these Words in my custom file => wp-content/themes/<my active WordPress theme>/business-directory/parts/listing-buttons.tpl.php :

    
    <?php if ( wpbdp_user_can( 'view', $listing_id ) ) : ?><a class="wpbdp-button button view-listing" href="<?php the_permalink(); ?>" <?php if ( wpbdp_get_option( 'listing-link-in-new-tab' ) ): ?>target="_blank" rel="noopener" <?php endif; ?>><?php _ex('Voir', 'templates', 'WPBDM'); ?></a><?php endif; ?>
        <?php if ( wpbdp_user_can( 'edit', $listing_id ) ) : ?><a class="wpbdp-button button edit-listing" href="<?php echo wpbdp_url( 'edit_listing', $listing_id ); ?>"><?php _ex('Modifier', 'templates', 'WPBDM'); ?></a><?php endif; ?>
        <?php if ( wpbdp_get_option( 'enable-listing-flagging' ) && wpbdp_user_can( 'flagging', $listing_id ) ): ?><a class="wpbdp-button button report-listing" href="<?php echo esc_url( wpbdp_url( 'flag_listing', $listing_id ) ); ?>"><?php echo apply_filters( 'wpbdp_listing_flagging_button_text', _x( 'Flag Listing', 'templates', 'WPBDM' ) ); ?></a><?php endif; ?>
        <?php if ( wpbdp_user_can( 'delete', $listing_id ) ) : ?><a class="wpbdp-button button delete-listing" href="<?php echo wpbdp_url( 'delete_listing', $listing_id ); ?>"><?php _ex( 'Supprimer', 'templates', 'WPBD"M' ); ?></a><?php endif; ?>
    
    
    • This topic was modified 6 years, 7 months ago by respodev.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to custom list actions buttons (Innertext)’ is closed to new replies.