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
// RENAME DIVI PROJECTS CUSTOM POST TYPE | |
function ze_rename_projects_cpt() { | |
register_post_type( 'project', | |
array( | |
'labels' => array( | |
'name' => __( 'Specials', 'divi' ), // CHANGE SPECIALS TO WHATEVER YOU WANT | |
'singular_name' => __( 'Special', 'divi' ), // CHANGE SPECIAL TO WHATEVER YOU WANT | |
), | |
'has_archive' => true, | |
'hierarchical' => true, |
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
<?php | |
// Removes et_add_viewport_meta from the wp_head phase | |
function remove_divi_actions() { | |
remove_action( 'wp_head', 'et_add_viewport_meta' ); | |
} | |
// Call 'remove_divi_actions' during WP initialization | |
add_action('init','remove_divi_actions'); | |
// add ability to pinch and zoom |
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
<?php | |
/* DON'T copy the first line (above) if your functions.php already has it. | |
* ----------------------------------------------------------------------- */ | |
function et_pb_postinfo_meta( $postinfo, $date_format, $comment_zero, $comment_one, $comment_more ){ | |
$postinfo_meta = ''; | |
if ( in_array( 'author', $postinfo ) ) | |
$postinfo_meta .= ' ' . esc_html__( 'by', 'et_builder' ) . ' <span class="author vcard">' . et_pb_get_the_author_posts_link() . '</span>'; | |
if ( in_array( 'date', $postinfo ) ) { | |
if ( in_array( 'author', $postinfo ) ) $postinfo_meta .= ' | '; |
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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |