• I was asked to take out the bottom footer that has the wordpress copyright and such. I had commented out some code just to check and see if it was what needed to go, it wasn’t, but when i took out the comment marks and nothing else it broke the following if statement saying it had an unexpected ‘}’

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try reversing your changes.

    Thread Starter phinn

    (@phinn)

    i did when i took out the comment marks, that’s the only thing i had changed

    Then put them back and see if that clears the error.

    Thread Starter phinn

    (@phinn)

    sorry if i wasn’t wording this properly but the comment wasn’t originally there, i added it, it didn’t work, i out the comment i added and it broke the next if statement somehow without even touching it

    Thread Starter phinn

    (@phinn)

    /** Add disclaimer below footer */
    
    add_action( 'genesis_after', 'agentpress_disclaimer' );
    
    /**
    
     * Add disclaimer widget area on Genesis after hook
    
     *
    
     */
    
    function agentpress_disclaimer() {
    
    	if ( is_active_sidebar( 'disclaimer' ) ) {
    
    		echo '<div class="disclaimer">';
    
    		genesis_structural_wrap( 'disclaimer' );
    
    		dynamic_sidebar( 'disclaimer' );
    
    		genesis_structural_wrap( 'disclaimer', 'close' );
    
    		echo '</div><!-- end .disclaimer -->';
    
    	}		
    
    }

    here’s the section of code in question. i was looking up where to find the copyright text and was told to check function.php. so i tested this

    /**add_action( 'genesis_after', 'agentpress_disclaimer' );*/

    which didn’t work, i reversed my actions and now it has a problem with the last curly bracket listed

    Thread Starter phinn

    (@phinn)

    after an hour of freaking out, and then my tab refreshed at some point which made it worse because the error wouldn’t even let me visit the page to edit the code, it fixed it self. what the heck? i’m glad it did, but this doesn’t make sense at all

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘comment broke the code?’ is closed to new replies.