Support » Plugin: bbPress Voting » Change label code crashing site

  • Resolved foodrepublic

    (@foodrepublic)


    Hi,
    when adding change label code to theme functions.php it causing site to go down with a tech error. remove the code and the site comes back on line. it is saying that it has an unexpected end of code. I am not a coder so any help on this issue would be appreciated as this is a great plugin and i just need to change the vote labels.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author natekinkead

    (@natekinkead)

    It sounds like an issue with the copy and paste. Either some special character got replaced (like the single quotes converted to curly single quotes) or you didn’t copy the whole snippet. Here it is again…

    add_filter('bbp_voting_helpful', function() {
    return 'Thanks';
    });
    add_filter('bbp_voting_not_helpful', function() {
    return 'No Thanks';
    });

    … let me know if that work or not.

    foodrepublic

    (@foodrepublic)

    Hi,
    Thanks so much for the reply. I will try the sent code and let you know. Thanks for the plugin by the way. Just what I needed.

    foodrepublic

    (@foodrepublic)

    tried the code this morning and site went down. remove the code site came back on line.
    WP error is
    An error of type E_PARSE was caused in line 73 of the file /home4/foodrep1/public_html/wp-content/themes/Food-child/functions.php. Error message: syntax error, unexpected ‘&’

    Plugin Author natekinkead

    (@natekinkead)

    There is no “&” in the code I provided you. Look at line 73 to see what’s causing it.

    foodrepublic

    (@foodrepublic)

    hi,
    again thanks for the reply.
    I checked the code again after another cut and paste and it is putting in all sorts of nonsense.
    Have just put it in manually and works perfectly.
    Thank you for taking the time to help on out on my stupidity 🙂 it is appreciated
    regards
    Steve

    foodrepublic

    (@foodrepublic)

    I have just been checking some amendments on mobile version of site and noticed that the labels and vote arrows are not lining up.
    Labels the arrows are to the right of the labels. Any ideas why this would be?
    Many thanks

    Plugin Author natekinkead

    (@natekinkead)

    Your site’s CSS is probably messing with it. If you know CSS, you can inspect it in your browser to figure out a CSS fix.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change label code crashing site’ is closed to new replies.