Title: Powered By Syntax Error Help
Last modified: December 20, 2016

---

# Powered By Syntax Error Help

 *  Resolved [mercadeobn](https://wordpress.org/support/users/mercadeobn/)
 * (@mercadeobn)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/powered-by-syntax-error-help/)
 * For some reason I am having a “Parse Error, syntax error” in line 796. I believe
   is this code I was editing:
 *     ```
       if ( ! function_exists( 'azera_shop_footer_powered_by' ) ) {
   
       	/**
       	 * Display the powered by section in the footer
       	 */
       	function azera_shop_footer_powered_by() {
       		?>
       		<div class="powered-by">
       			<?php printf(
       				__( '%1$s powered by %2$s', 'azera-shop' ),
       				sprintf( '<a href="www.facebook.com/imediamarketingpr" rel="nofollow">%s</a>', esc_html__( 'WordPress', 'azera-shop' ) ),
       				sprintf( '<a href="www.natudoctor.com" rel="nofollow">%s</a>', esc_html__( 'Azera Shop', 'azera-shop' ) ),
       			); ?>
       		</div>
       		<?php
       	}
       }
   
       add_action( 'azera_shop_bottom_footer','azera_shop_footer_powered_by' );
       ```
   
 * Please, I need assistance. Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/powered-by-syntax-error-help/#post-8569379)
 * please post the _full _text of the error message.
 * also, please re-post the code, using the method as described in [https://codex.wordpress.org/Forum_Welcome#Posting_Code](https://codex.wordpress.org/Forum_Welcome#Posting_Code)
 * (as it is now, the posted code is broken by the way it was posted, and not useful
   for troubleshooting)
    -  This reply was modified 9 years, 9 months ago by [Michael](https://wordpress.org/support/users/alchymyth/).
 *  Thread Starter [mercadeobn](https://wordpress.org/support/users/mercadeobn/)
 * (@mercadeobn)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/powered-by-syntax-error-help/#post-8569396)
 * Parse error: syntax error, unexpected ‘;’, expecting ‘,’ or ‘)’ in /home3/ab78334/
   public_html/natudoctor.com/wp-content/themes/azera-shop/functions.php on line
   796
 * Code: [https://gist.github.com/anonymous/b69f8d0ad5898c478f04725ff4c0dca2](https://gist.github.com/anonymous/b69f8d0ad5898c478f04725ff4c0dca2)
    -  This reply was modified 9 years, 9 months ago by [mercadeobn](https://wordpress.org/support/users/mercadeobn/).
    -  This reply was modified 9 years, 9 months ago by [mercadeobn](https://wordpress.org/support/users/mercadeobn/).
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/powered-by-syntax-error-help/#post-8570350)
 * you have copy/pasted some code from a text source which often include odd formatting
   especially of the quotation marks, which renders the code useless.
 * all single and double quotation marks need to be straight like `'` and `"`
 * correct the quotation marks in this whole section:
 *     ```
       if ( ! function_exists( ‘azera_shop_footer_powered_by’ ) ) {
   
       /**
       * Display the powered by section in the footer
       */
       function azera_shop_footer_powered_by() {
       ?>
       <div class=”powered-by”>
       <?php printf(
       __( ‘%1$s powered by %2$s’, ‘azera-shop’ ),
       sprintf( ‘<a href=”www.facebook.com/imediamarketingpr” rel=”nofollow”>%s</a>’, esc_html__( ‘WordPress’, ‘azera-shop’ ) ),
       sprintf( ‘<a href=”www.natudoctor.com” rel=”nofollow”>%s</a>’, esc_html__( ‘Azera Shop’, ‘azera-shop’ ) ),
       ); ?>
       </div>
       <?php
       }
       }
   
       add_action( ‘azera_shop_bottom_footer’,’azera_shop_footer_powered_by’ );
       ```
   
 * from line 784 to 802 in your posted file.
 *  Thread Starter [mercadeobn](https://wordpress.org/support/users/mercadeobn/)
 * (@mercadeobn)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/powered-by-syntax-error-help/#post-8573161)
 * Thank you very much Michael! I checked in the FTP lines and it was because I 
   erased a comma by mistake.
 * Appreciate your time and help.
 *  [Suyogya Shukla](https://wordpress.org/support/users/themeislesupport/)
 * (@themeislesupport)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/powered-by-syntax-error-help/#post-8574905)
 * Hey [@alchymyth](https://wordpress.org/support/users/alchymyth/),
 * Thanks for helping out! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

 The topic ‘Powered By Syntax Error Help’ is closed to new replies.

## Tags

 * [Azera shop](https://wordpress.org/support/topic-tag/azera-shop/)
 * [powered by](https://wordpress.org/support/topic-tag/powered-by/)

 * 5 replies
 * 3 participants
 * Last reply from: [Suyogya Shukla](https://wordpress.org/support/users/themeislesupport/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/powered-by-syntax-error-help/#post-8574905)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
