Articles of bloginfo

Need help with page title (Static front page)

I need some help with the code to put inside the <title> to generate the following: Static front page: Should just be the bloginfo(‘name’) All other pages: Should be wp_title() | bloginfo(‘name’) EDIT I have tried the following but it doesn’t work: <title><?php if(is_front_page() ) { bloginfo(‘name’) } else { wp_title() | bloginfo(‘name’) } ?></title>

Filter the blog's title without using global variables

The below code uses the bloginfo filter to add some CSS rules to my blog’s title and outputs it to the site header, without affecting the HTML head’s <title> tag. This solution was taken from here and it works very well (tested with Firefox in Ubuntu and with Android’s default browser). I like it because […]

Using bloginfo and divs inside a php file

The following code is inside a .php file and works; however, I do not know how I can replace the TEXT with a bloginfo(‘template_directory’) to an internal image file. I’ve search the forums but I cannot find a way to get this to work. Is there an easier way? if ( $colors && in_array(‘green’, $colors) […]

Split site title and apply different classes

I’m currently designing a theme using Underscores and I want to do something like this with the site’s title: Thisisthetitle So the title is all one word and the last five characters are different to the rest. I am currently using the bloginfo function to display the title and I can’t figure out a way […]

Wp Enviroment problem with included file

i have a file i am including across site to index.php, single.php etc. This file behaves really strage and acts like it not part of wordpress Enviroment meaning: i get errors on get_bloginfo(‘template_url’) and it won’t get the values from my options page. Any idea what this might happen? Here is the include code i […]

How to use tinyMCE for user “biographical info” without messing with any core file?

I noticed when you typein the user’s “biographical info” on the profile, it shows up in one page! Looks really terrible. So: Is there a way to use tinyMCE or other solution for user “biographical info” without messing with any core file, and without any plugin? Thanks a lot.

How to call for bloginfo inside function in functions.php?

I am new to WordPress and PHP, so I have this question: I want to add a Link to the “New Post” for a Custom Post Type I implemented. But it will only let me put static links, connected to my localhost test installation. How do I add a non-static URL right there, like a […]

WordPress address URL and bloginfo

I have updated my WordPress Address (URL) and Site Address (URL) to be https:// in the General Settings of WordPress as I have added a secruity certificate to the hosting. Should the css url automatically update to reflect the new address if I’m using <link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘stylesheet_url’); ?>” /> in the header code. […]

Change the meta description on a specific page?

I want to change the title and meta description on my homepage if it’s opened on an android phone. I have this code that changes the title, inside functions.php: /** Modify the front/home page title for Android devices **/ add_filter( ‘wp_title’, function( $title ) { return ( is_front_page() || is_home() ) && isset( $_SERVER[‘HTTP_USER_AGENT’] ) […]

Form action unfamiliar

I am refactoring some code in the header.php: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml” <?php language_attributes(); ?>> <head profile=”http://gmpg.org/xfn/11″> <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” /> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title> […]