Remove or change color of title
-
I am using the theme of Illdy (illdy…. One i Two L’s) and cant seem to remove the title on the other pages (pages other than home page). I have looked everywhere and cannot seem to find a solution. I have tried this code in the functions.php file:
function wpb_hidetitle_class($classes) {
if ( is_single() || is_page() ) :
$classes[] = ‘hidetitle’;
return $classes;
endif;
return $classes;
}
add_filter(‘post_class’, ‘wpb_hidetitle_class’);And have added this code:
.hidetitle .entry-title {
display:none;
}to the style.css, in which should work, but the problem is, this CSS rule will only work if the wordpress theme uses entry-title in the post or page title, in which mine is obviously not, since it’s not working.
Anyways, if theres no solution to that, can someone tell me how to change the title color, and different title color for different pages?
Website i’m working on is called: “ptsd2health.com” (without quotation marks) and i’m trying to remove or change color of title on the page Robot or Caution It Might Get Loud (note that the “Caution It Might Get Loud” page has background music upon clicking page, but may be paused in the top right of page)
-
Hi @plebdough,
The site you are referring to – ptsd2health.com – is not hosted on WordPress.com. Your site is a self-hosted WordPress.org site (Domain Control).
This is a public forum which provides support only for the sites hosted on WordPress.com.
You can seek help for WordPress.org sites here: https://wordpress.org/support/
Also – please know that you might need an account to post on self-hosted WordPress forums. You can create one here. https://login.wordpress.org/register
You can read the difference between WordPress.com and WordPress.org here: https://en.support.wordpress.com/com-vs-org/
Lastly, when making edits to the Functions.php file of your theme, be aware that any changes you make will be erased whenever your theme is updated or whenever you change themes.
Another important note when working with the functions.php file: “if a WordPress Plugin calls the same function, or filter, as you do in your functions file, the results can be unexpected — even site-disabling.”
You can read more about this here:
https://codex.wordpress.org/Functions_File_ExplainedCheers,
Ally
-
@plebdough, I see you are using the Illdy theme. There is a support forum for that theme at WordPress.org where you can post your questions: https://wordpress.org/support/theme/illdy
I took a quick look at your site and it appears you have gotten the titles removed from the other pages as I am not seeing any at this time.
- The topic ‘Remove or change color of title’ is closed to new replies.