Use of domain name

Yes, you can use your domain to build a website. In addition to the domain registrar, you will also need a web host. A recommendation would be far off-topic here but search for WordPress hosting, perhaps look through some reviews. I’d suggest chatting with their support team and if one stands out by answering your … Read more

How To Keep Search Title the same on paged Results

The problem is here: if( get_post_type()==’page’ || is_single() ){ echo ‘<h1 class=”h2″>’. $post->post_title .'</h1>’; } get_post_type() is using the global $post, which will contain the first post in your result set. If this is a page, then your other conditions will never be tested and you’ll never reach the is_search() test. Use is_page() instead: if( … Read more

Show different title on category page

You’ll need to change this in, most likely, your header.php file in your themes root. I would suggest that you use something like YoastSEO Plugin which will give you granular manipulation of your sites <title> and <meta> tags. If this is not an option, you would have to dive into the header.php template and update … Read more

Image behind the post’s title

The image you are referring to is set via your themes style.css file and not via the WordPress admin or in your theme options. You can find the file here: http://promisingcoins.com/wp-content/themes/structural/style.css Here is the CSS that is used for this section (line #1305): .breadcrumb { background: url(images/breadcrumb.png); position: relative; text-align: center; padding: 60px 0px; margin-top: … Read more

How to search titles/artist/album within a playlist, and only lists the results that match?

I unhook the wp_underscore_playlist_templates() function and create my own version prefix_wp_underscore_playlist_templates() You should first get back to or restore the default playlist template. (i.e. Hook back to wp_underscore_playlist_templates().) Add then add this somewhere in the theme’s main functions.php file: add_action( ‘wp_playlist_scripts’, function(){ ?> <script> jQuery( function( $ ){ // Add the search box. $( ‘.wp-playlist’ … Read more

How can I add a title to this ‘maintenance mode’ function?

You can pass a title to the wp_die() function or even any other HTML content like heading tags: https://codex.wordpress.org/Function_Reference/wp_die But if you are trying to have more control over what’s being outputted, you should use the template_include filter and use your custom template: https://codex.wordpress.org/Plugin_API/Filter_Reference/template_include EXAMPLE: add_filter( ‘template_include’, ‘show_maintenance_page’, 99 ); function show_maintenance_page( $template ) { … Read more

How come I get internal server error even with try catch for get_the_title in functions.php?

You can avoid hard coded title tag in your theme template. Just use theme support. add_theme_support(‘title-tag’); OR, If you want to use title tag then you can do something like this. <title><?php wp_title(‘|’, true, ‘right’);?></title> You can then apply filter as /** * Filters wp_title to print a neat <title> tag based on what is … Read more

Change meta data of pdf file

Google also pulls information from the PDF file itself. To truly fix the files, you’ll need Acrobat Pro. You can then edit the embedded title, and you then delete the original and upload a new one. If these PDFs are associated with specific Posts or Pages, it’s safest to go to that individual Post or … Read more

woocommerce related product title length

Problem solve based on this article https://designsmaz.com/how-to-short-woocommerce-products-title/#comment-76957 Basically I just replace the <?php the_title(); ?> to <?php $shorttitle = mb_substr(the_title(”,”,FALSE),0,45); echo $shorttitle; if (strlen($shorttitle) >44){ echo ‘&hellip;’; } ?>