This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Changing "themeblvd_btn_navbar_text"

  • Creator
    Topic
  • #4222
    timworx
    Participant

    Hello,
    Is there an easy way to put something in the functions file or a plugin to modify the value of the filter in echo apply_filters( 'themeblvd_btn_navbar_text', '<i class="icon-reorder"></i>' ); ? (It is from the display.php file.)

    I know I could move the themeblvd_header_menu_default() function to the child, but I wanted to see if there was something that modified even less code, first.
    Thank you!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #4236
    Jason Bobich
    Keymaster

    Hello,

    You are correct in assuming there is an easier way here. 🙂

    Filters are very important in WordPress development and are going to allow you to modify many things of Jump Start and WordPress in general. Definitely give this article a read: http://dev.themeblvd.com/tutorial/filters/

    Example:

    function my_btn_navbar_text( $text ){
    	return 'My New Text';
    }
    add_filter( 'themeblvd_btn_navbar_text', 'my_btn_navbar_text' );
    #4247
    timworx
    Participant

    You’re the man!
    I looked through it, but I wasn’t really wrapping my head around it fully. Now I get it. Simple, I love it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.