Question

  • Creator
    Topic
  • #4021657

    How to Setup Table of Content & Headings alignment in Center

    by JulianLimaCosta ·

    Hi seniors,
    Hope you’re doing well,
    I have a website and i am trying to setup post page under WP settings but unable to apply the following features,

    1. All the headings including H2,H3,H4 showing in center alignment but i am looking for left align.

    2. I installed the “Easy Table of Content Plugin” to setup table of content but it only counting the main heading and showing rest of the headings under main heading, counting only main heading number “1” and all others 1.2,1.3,1.4 but i want this numbers like 1,2,3,4,5

    anyone please suggest solutions for above two problems

    Note: unclear link removed by moderator as spam.

    Thanks

    • This topic was modified 3 weeks, 2 days ago by Avatar photokees_b.

You are posting a reply to: How to Setup Table of Content & Headings alignment in Center

The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our Community FAQs for details. All submitted content is subject to our Terms of Use.

All Answers

  • Author
    Replies
    • #4023360

      Reply To: How to Setup Table of Content & Headings alignment in Center

      by Alex White ·

      In reply to How to Setup Table of Content & Headings alignment in Center

      Select the text that you want to center, and then click Paragraph on the Format menu. On the Indents and Spacing tab, change the setting in the Alignment box to Centered, and then click OK.

    • #4025219

      How to Setup Table of Content & Headings alignment in Center

      by becketharper585 ·

      In reply to How to Setup Table of Content & Headings alignment in Center

      To set up a table of contents (TOC) and headings alignment in the center, you will need to use HTML and CSS. Here’s an example of how you can accomplish this:

      1. In your HTML file, create a container element (such as a div) to hold your TOC. Inside this container, create a ul element to hold your list of headings. Each heading should be a li element.

      <div class=”toc-container”>

      • Heading 1
      • Heading 2
      • Heading 3

      </div>

      1. In your CSS file, add styles to center the TOC container and its list of headings. You can use the text-align property to center the container element, and the margin property to center the list of headings.

      .toc-container {
      text-align: center;
      }

      .toc-container ul {
      margin: 0 auto;
      }

      1. You can also add styles to center the headings individually if they are wrapped in a div or p element:

      .heading{
      text-align:center;
      }

      1. You can also add styles to customize the look and feel of your TOC. For example, you can change the font size, color, and font family of the headings

      .toc-container ul li {
      font-size: 20px;
      color: blue;
      font-family: Arial, sans-serif;
      }

      This is a basic example of how to set up a table of contents and center the headings using HTML and CSS. You can adjust the styles as needed to fit the specific design of your website.
      .

    • #4026402

      Heading alignment in HTML

      by auraitsollutions ·

      In reply to How to Setup Table of Content & Headings alignment in Center

      To set the heading alignment in HTML, we use the style attribute inside an HTML element. The attribute is used with the HTML <h1> to <h6> tag

    • #4026905

      Reply To: How to Setup Table of Content & Headings alignment in Center

      by becketharper585 ·

      In reply to How to Setup Table of Content & Headings alignment in Center

      You can change the alignment of headings on your website by using the CSS of your theme. You can do this by going to Appearance > Editor in your WordPress dashboard and finding the CSS file that controls the headings. It will set the text-align property for headings and change it from “center” to “left”.

Viewing 3 reply threads