Skip to content

Instantly share code, notes, and snippets.

@Mao8a
Last active March 4, 2016 15:57
Show Gist options
  • Save Mao8a/118be105c1607f484e03 to your computer and use it in GitHub Desktop.
Save Mao8a/118be105c1607f484e03 to your computer and use it in GitHub Desktop.
WP:Issues-Fixed

Worpress Fixes

Fatal error: Allowed memory size of 268435456 bytes exhausted at...

Add this lines to wp-config.php before wp-settings

/** Increase memory limit */
define( 'WP_MEMORY_LIMIT', '1024M' );
define( 'WP_MAX_MEMORY_LIMIT', '1024M' );

Or add memory_limit = 515M to php.ini

Modify read more link text

http://codex.wordpress.org/Customizing_the_Read_More

add_filter( 'the_content_more_link', 'modify_read_more_link' );
function modify_read_more_link() {
return '<a class="more-link" href="' . get_permalink() . '">Your Read More Link Text</a>';
}

###Page Jump or link to id scroll from aother page Reference

#id => domain.com/#id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment