bloginfo(); outputs wrong urls without https on inner pages

According to documentation, get_stylesheet_directory_uri() should check for SSL while retrieving the theme directory url. Try exchanging <link rel=”shortcut icon” href=”https://wordpress.stackexchange.com/questions/307203/<?php bloginfo(“template_directory’); ?>/icons/favicon.ico”> to <link rel=”shortcut icon” href=”https://wordpress.stackexchange.com/questions/307203/<?php echo get_stylesheet_directory_uri(); ?>/icons/favicon.ico”> in your header.php file.

Get youtube link title in post title

Use the following code into your functions.php file. function change_title_yt( $post_id ) { $current_title = $_POST[‘post_title’]; $doc = new DOMDocument(); $doc->preserveWhiteSpace = FALSE; $doc->loadHTMLFile($current_title); $title_div = $doc->getElementById(‘eow-title’); $title = $title_div->nodeValue; $my_args = array( ‘ID’ => $post_id, ‘post_title’ => $title ); if ( ! wp_is_post_revision( $post_id ) ){ // unhook this function so it doesn’t loop … Read more

Metallex Theme modifies links after saving them

Just after posting the question I tried to remove the quotes from the href in the theme options and it worked. <a href=mailto:[email protected]>[email protected]</a> Another solution I considered was to use .htaccess redirects in a way such it redirects to whaterver the theme decided to point to a mailto: Redirect 301 /[path-to-wherever-metallex-points-to] mailto:[email protected] -solution 2 source- … Read more