• Resolved DavidAP

    (@davidap)


    On the main page (user side) I have two pages in the navigation bar – Home and Sample page. The Home page is where all the posts are listed and when you click on a post heading it takes you to a page where only that post can be seen.

    I’d like to change this h1 styling to an h2. Where would I do this?

    <article id=”post-10″ class=”post-10 post type-post status-publish format-standard hentry category-general”>
    <header class=”entry-header”>
    <h1 class=”entry-title”>Hello World!</h1>

Viewing 4 replies - 1 through 4 (of 4 total)
  • You would have to change it in the template file(s) and then modify any relevant CSS. Specifics would depend on your theme.

    Are you familiar with HTML and CSS?

    Thread Starter DavidAP

    (@davidap)

    Yes I am. In fact, I copied a theme folder and renamed it, etc. to make WordPress look like my existing website, which the reason I need to change the h1 to h2. My website’s stylesheet uses a color for h1 that I don’t want duplicated in WordPress:

    <header class=”entry-header”>
    <h1 class=”entry-title”>Hello World!</h1>
    </header>

    I tried changing in style.css and even changing h1 to h2 in index.php, but no go. There isn’t an h1 listed in page.php and I didn’t see it in function.php. So I don’t know where that h1 is.

    Thanks for the help.

    Thread Starter DavidAP

    (@davidap)

    OK, I found it in content-page.php and content-single.php. It threw me because these pages weren’t in the url.

    Thread Starter DavidAP

    (@davidap)

    Resolved

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Simple Styling Question’ is closed to new replies.