/** * Theme functions and definitions * * @package HelloElementorChild */ /** * Load child theme css and optional scripts * * @return void */ function hello_elementor_child_enqueue_scripts() { wp_enqueue_style( 'hello-elementor-child-style', get_stylesheet_directory_uri() . '/style.css', [ 'hello-elementor-theme-style', ], '1.0.0' ); } add_action( 'wp_enqueue_scripts', 'hello_elementor_child_enqueue_scripts', 20 ); /* REDIRECT PRENSA POST TYPE */ function confidas_template_redirect() { if( get_post_type() == 'prensa' ) { $id = get_the_id(); $url = get_post_meta( $id, 'link', true ); if( $url ) { wp_redirect( $url ); die; } } } add_action( 'template_redirect', 'confidas_template_redirect' ); /* * wp-LOGIN LOGO * La imagen de wordpress es cuadrada 1:1 */ function my_login_logo_one() { ?>