Tag Info

Hot answers tagged

2

You will need to use site_url($path_to_style_sheet, 'https') instead of bloginfo(). The home_url() method also supports https.


2

The meta description isn't part of the Twenty Fifteen theme. You mentioned the Yoast plugin in a previous question yesterday, so I guess the meta description comes from there. According to their API page, there's a filter called wpseo_metadesc that might be what you're looking for. Here's an untested example: /** * Change the Yoast meta description for ...


1

You can filter template_directory_uri: <?php add_filter( 'template_directory_uri', function( $template_dir_uri ){ return str_replace( 'http://example.com', 'https://cdn.example.com', $template_dir_uri ); }); This will change URIs so they point at a CDN subdomain served via HTTPS.


1

The conditional tag is_front_page() is used to specifically check for a static front page, so you should be able to use that to switch between your title formats <title> <?php if(is_front_page()) { bloginfo('name'); } else { wp_title( '|', true, 'right' ); }; ?> </title>


1

Use Database Search and Replace and replace the IP 192.168.33.21 with the domain name project.dev.



Only top voted, non community-wiki answers of a minimum length are eligible