Change page title colour?

  • Unknown's avatar

    I’m using a theme where the page title is displayed over top of a feature image. I cannot figure out how to change the color of the text (which is currently white) Going into theme options for typography does nothing…

    Best I could get is I was able to change the colour of the underline by editing “background” of the css below.

    .inner-slider h1:after {
    content: ”;
    width: 130px;
    height: 8px;
    background: #BDBDBD;
    position: absolute;
    left: 0;
    bottom: 0;
    }

    If it helps I think this is the php code (in functions.php) where the title is coming from:

    >

    <?php if( $opt_page_title ) { ?>

    post_title; ?>

    </div>
    </div>
    </div>
    <!– /.row –>
    </div></div>
    </div>
    <!– /.content-wrapper –>
    <?php } ?>

  • Hi @kano17,

    Just to help get you sorted out here, a couple things.

    First, you need to provide a URL to the homepage or site you need help with before anyone can help you out.

    Second, going off the fact that you even mentioned PHP code and a functions.php file is a sure sign you’re probably operating a self-hosted WordPress site.

    Currently, you are in the WordPress.com Support Forums, which provides support for WordPress.com hosted sites only. There are big differences between self-hosted WordPress sites and WordPress.com hosted sites, so please refer to the following support document to learn more about that.
    https://en.support.wordpress.com/com-vs-org/

    Also, please redirect your question to the WordPress.org Support Forums, which is where you can find help for self-hosted WordPress sites.

    WordPress.org Forums
    https://wordpress.org/support/

    Please note, you’ll need a WordPress.org account to post in the forums there. If you don’t have an account, you can register for one here:
    https://login.wordpress.org/register

  • Unknown's avatar

    @pauloaquino

    Sorry I didn’t provide a link because the owner of the site wants to leave it in maintenance mode.

    Found a solution though if someone else has similar issue – I found the css class for the element that the title seemed to be within & set the color property from there.

  • The topic ‘Change page title colour?’ is closed to new replies.