WordPress wp_title blank on index page

Here’s is what I read from Codex: If you are using a custom homepage with custom loops and stuff, you will have an empty wp_title. Here goes a neat hack to add the description/tagline at the wp_title place on homepage: <title><?php bloginfo(‘name’); ?> | <?php is_front_page() ? bloginfo(‘description’) : wp_title(”); ?></title> So use is_front_page() to … Read more

How to align title at center of ActionBar in default theme(Theme.Holo.Light)

You can create a custom layout and apply it to the actionBar. To do so, follow those 2 simple steps: Java Code getSupportActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); getSupportActionBar().setCustomView(R.layout.actionbar); Where R.layout.actionbar is the following layout. XML <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_gravity=”center” android:orientation=”vertical”> <TextView android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_gravity=”center” android:id=”@+id/action_bar_title” android:text=”YOUR ACTIVITY TITLE” android:textColor=”#ffffff” android:textSize=”24sp” /> </LinearLayout> It can be … Read more

Change UINavigationBar font properties?

From iOS 5 onwards we have to set title text color and font of navigation bar using titleTextAttribute Dictionary(predefined dictionary in UInavigation controller class reference). [[UINavigationBar appearance] setTitleTextAttributes: [NSDictionary dictionaryWithObjectsAndKeys: [UIColor blackColor], NSForegroundColorAttributeName, [UIFont fontWithName:@”ArialMT” size:16.0], NSFontAttributeName,nil]]; The below tutorial is the best tutorial for customization of UIElements like UInavigation bar, UIsegmented control, UITabBar. This … Read more

UIButton title color change on highlight – How to turn it off?

you can use [UIButton setTitleColor:forState:] for all the states , then title color will remain same for all states. [button setTitleColor:[UIColor redColor] forState:UIControlStateHighlighted]; [button setTitleColor:[UIColor redColor] forState:UIControlStateNormal]; [button setTitleColor:[UIColor redColor] forState:UIControlStateSelected]; Note:To avoide type or paste above code three times you can use following code suggested by Will, [button setTitleColor:[UIColor redColor] forState:(UIControlStateHighlighted | UIControlStateNormal | … Read more

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