Custom title, Bones theme

In your header.php file, replace this line: <p id=”logo” class=”h1″><a href=”https://wordpress.stackexchange.com/questions/87084/<?php echo home_url(); ?>” rel=”nofollow”><?php bloginfo(‘name’); ?></a></p> with your custom line: <p id=”logo><h1>This is a<br /><span id=”customtitle”>Big title</span></h1></p>

How can I automatically insert the page content as the title?

I think save_post action hook is the proper one. Maybe you’ll want to insert some checking if the post title is already set ($post_object->post_title), as this code always update the title according to the content. add_action( ‘save_post’, ‘save_post_wpse_87921’, 10, 2 ); function save_post_wpse_87921( $post_id, $post_object ) { // Auto save? if ( defined( ‘DOING_AUTOSAVE’ ) … Read more

Unwanted content in website title

I doubt WordPress would be putting a url like you mentioned ‘www.domain.com/…’ in title tags either way. Are you sure you’re that’s where it’s showing up? The hash in the url is likely just for slider functionality. You could try a different slider or ignore it, since it doesn’t affect anything.

How to add H4 tag to the_content filter (after content)?

Try this instead : //Related stock photo function function custom_content_after_post($content){ if (get_post_type( get_the_ID() ) == ‘portfolio’) { //Query for the the related posts – portfolio custom post type $loop = new WP_Query( array(‘post_type’ => ‘portfolio’, ‘posts_per_page’ => 5, ‘orderby’ => ‘rand’)); $sptitle=”<h4>Related Stock Photos</h4>”; while ( $loop->have_posts() ) { $loop->the_post(); $div = ‘<div style=”margin:25px 10px … Read more

WordPress not opening posts with only numbers if permalink is post_name

Sorry I didn’t follow up on this. You mentioned you weren’t using date archives. You can change the date archive structure to remove the conflict with /%postname%/: function wpa_change_date_structure(){ global $wp_rewrite; $wp_rewrite->date_structure=”date/%year%/%monthnum%/%day%”; } add_action( ‘init’, ‘wpa_change_date_structure’ ); So now after permalinks are flushed, date archive URLs will be prefixed with date/, so numeric postnames will … Read more

Hard coded main navigation

STYLING With a static navigation, the CSS you mentioned, won’t work. Use the simple HTML parameters: #access a:link, #access a:active, #access a:visited{ font-weight: bold; } CODING In my project, I used echo get_the_category_by_ID( 11 ); to echo the Category name of the cat_ID = 11. You can show the cat name by this. For page … Read more

How to insert icon in site title

That setting is html escaped, it means that all the html special chars are converted in the realated html entities, so e.g. < became &lt;. To print correctly you can use echo html_entity_decode( get_option(‘blogname’) ); However be aware, that blogname option is used by WordPress and by a lot WP themes and plugins (e.g. SEO … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)