Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*================================================
- #Load the Parent theme style.css file
- ================================================*/
- function marius_enqueue_styles() {
- wp_enqueue_style( 'divi-parent', get_template_directory_uri() . '/style.css' );
- }
- add_action( 'wp_enqueue_scripts', 'marius_enqueue_styles' );
- /*================================================
- #Load the translations from the child theme folder
- ================================================*/
- function marius_translation() {
- load_child_theme_textdomain( 'Divi', get_stylesheet_directory() . '/lang/theme/' );
- load_child_theme_textdomain( 'et_builder', get_stylesheet_directory() . '/lang/builder/' );
- }
- add_action( 'after_setup_theme', 'marius_translation' );
- function custom_post_name () {
- return array(
- 'feeds' => true,
- 'slug' => 'product',
- 'with_front' => false,
- );
- }
- add_filter( 'et_project_posttype_rewrite_args', 'custom_post_name' );
- function portfolio_size_h($height) {
- return '9999';
- }
- function portfolio_size_w($width) {
- return '9999';
- }
- add_filter( 'et_pb_portfolio_image_height', 'portfolio_size_h' );
- add_filter( 'et_pb_portfolio_image_width', 'portfolio_size_w' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement