This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fu_list_all_posts() { | |
global $post; | |
// Return if the current post type is not page or the page is not blog. | |
if( $post->post_name !== 'blog' || $post->post_type !== 'page' ) { | |
return; | |
} | |
// Get all posts. | |
$all_posts = get_posts(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_footer', 'add_wedocs_100_percent' ); | |
function add_wedocs_100_percent() { | |
?> | |
<script> | |
jQuery('.wedocs-single-wrap').parent().parent().css("width","100%"); | |
</script> | |
<?php | |
} |
NewerOlder