Skip to content

Instantly share code, notes, and snippets.

@chefblogger
chefblogger / function.php
Last active Aug 21, 2020
Hide DIVI Project Post Type
View function.php
/*================================================
#3 Divi Project verstecken
Mehr Infos unter
https://www.chefblogger.me/2020/08/21/divi-project-post-type-entfernen-oder-verstecken/
================================================*/
add_filter('et_project_posttype_args', 'mytheme_et_project_posttype_args', 10, 1);
function mytheme_et_project_posttype_args($args) {
return array_merge($args, array(
'public' => false,
@chefblogger
chefblogger / htaccess
Created Aug 21, 2020
#301 Redirects for .htaccess
View htaccess
#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/
You can’t perform that action at this time.