• Resolved ngajugodwin

    (@ngajugodwin)


    How can i centralize my site title. I tried putting it on style sheet and additional css. But none seem to work. Below is my code:

    h1.site-title {
    text-align: center;
    }

    Kindly assist.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Ngajugodwin,

    thanks for using MH Magazine lite.

    For CSS customizations, you can always use your browser’s inspection tool to inspect the elements on your site and then use that information to add your own code modifications, for example:

    .mh-header-text { text-align: center; }

    You can add CSS code in your WordPress dashboard under Appearance => Customize => Additional CSS or by using plugins for adding code snippets.

    Thread Starter ngajugodwin

    (@ngajugodwin)

    Ok, Many thanks for the help. I was also able to see that the element used was “.mh”

    I prefer placing my CSS code under stylesheet. Is it advisable to place it there or what do you recommend?

    Michael

    (@mh-themes)

    You shouldn’t modify core theme files (just like you shouldn’t modify WordPress core files). This is considered bad practice and these kind of modifications will be lost after updates anyway.

    As mentioned in the previous response, you can add CSS code in your WordPress dashboard under Appearance => Customize => Additional CSS or by using a plugin for adding code snippets.

    Thread Starter ngajugodwin

    (@ngajugodwin)

    Many thanks for this.

    I will make necessary changes.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Centralize Site Title’ is closed to new replies.