This file contains 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
/*Change Project Post Type Slug*/ | |
function ds_divi_modify_project_post_slug() { | |
return array( | |
'feeds' => true, | |
'slug' => 'new-slug', /*Change text between brackets*/ | |
'with_front' => false, | |
); | |
} | |
add_filter( 'et_project_posttype_rewrite_args', 'ds_divi_modify_project_post_slug' ); |
This file contains 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 custom_divi_header() { | |
//Insert HTML here | |
} | |
add_action( 'et_html_main_header', 'custom_divi_header' ); |
This file contains 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 | |
function companyage(){ | |
$currentyear = date("Y"); | |
$foundedyear = '1979'; //change year to your own year | |
$companyage = $currentyear - $foundedyear; | |
return = $companyage; | |
} | |
add_shortcode('mycompanyage', 'companyage'); | |
// use [mycompanyage] to output the business age in years |