Change Text on the Button ADD BUSINESS and take out other section in the picture


  • Mitchell
    Senior Member 137 points
    January 20, 2020 at 12:57 pm

    In DT9 how do I Change Text on the Button ADD BUSINESS? and take out other section in the picture.

    Attachments:
    You must be logged in to view attached files.
  • Adnan
    Adnan
    Elite Member 466 points
    January 20, 2020 at 1:54 pm

    The file you need to change is widget-button.php

    You can copy this file into your child theme and change it.

  • Eric
    Eric
    Newbie 24 points
    January 22, 2020 at 3:31 pm

    I’d like to remove the +ADD LISTING button altogether… How do I do that?

    Attachments:
    You must be logged in to view attached files.
  • Adnan
    Adnan
    Elite Member 466 points
    January 22, 2020 at 3:46 pm

    Copy sidebar.php to your child theme and comment out the line with:

    get_template_part( ‘widgets/widget’, ‘button’ );


    ...
    }else{
    if(THEME_KEY != "cm"){
    // get_template_part( 'widgets/widget', 'button' );
    }
    ...

  • Eric
    Eric
    Newbie 24 points
    January 22, 2020 at 5:46 pm

    Thanks Adnan, would you mind rephrasing your instructions? I’m not clear on what you mean when you say “comment out the line with” What line are you referring to?

    Are you asking me to comment out the “get” line and replace it with the code in red?

    Thanks

  • Adnan
    Adnan
    Elite Member 466 points
    January 22, 2020 at 6:44 pm

    Hi Eric,

    to comment out just put “//” in front of this line:

    get_template_part( ‘widgets/widget’, ‘button’ );

Viewing 6 posts - 1 through 6 (of 6 total)

New Business Themes for WordPress 2020

Build your WordPress Business today with our WordPress Business themes.