Join our new community forum for support & discussion

Join Now

Home Support General HivePress Old category display snippet for list service crashed the website.

Old category display snippet for list service crashed the website.

  • Author
    Posts
  • Wojtek

    I tried to use following code snippet

    add_filter(
        	'hivepress/v1/templates/listing_submit_category_page',
        	function( $template ) {
        		return $template;
        	}
        );

    for 2 steps list service process.

    I installed code snippets plugin and as soon I activated the snippet my website crashed.

    Please advise how to fix it.

    Thank you.

    yevhen developer

    Please make sure that the snippet was correctly added with Code Snippets or another similar plugin. It was tested locally and it seems to be ok
    https://prnt.sc/ZXr-6eU8fwo-
    https://prnt.sc/Zx4L4VT-Jwws

    Wojtek

    I am trying to add the snippet and I get in return:

    an error occurred when saving the snippet
    I do not know but maybe I am doing something wrong.

    Please help.

    Wojtek

    I use code snippets plugin to do this.

    ihor developer

    Please make sure that you copied it exactly, but without the <?php part, it’s already pre-added by the Code Snippets plugin.

    Wojtek

    I did as suggested but there is no change. There is still the same error when trying to activate the code. Any other suggestions?

    ihor developer

    If possible send a screenshot of the code snippet editor with this snippet added and I’ll check it.

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

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.