Viewing 5 reply threads
  • Author
    Posts
    • #4626
      kplaneta
      Member

      Hi,

      I’ve been looking in your documentation but I cannot find a way to divide my custom settings page into sections with <h3>. Is there an easy way to do it?

      Have a nice day,
      Chris

    • #4642
      Kevin
      Keymaster

      Hi Chris-

      Are you using the parts/settings folder? Please add some example code and we will get you setup.

      Thanks,

      Kevin

    • #4762
      kplaneta
      Member

      Hi Kevin,

      I’m sorry for the delay, but I forgot about this post.

      For starters, let me be more precise. The issue I’m having is with settings pages divided into workflow tabs. I don’t know how it works in ordinary settings pages. I work on Piklist v 0.9.9.4 and WP MU 4.3.1

      Now the issue.

      I know that I can write literally e.g. <h3>title</h3> in the piklist’s settings setup. However, when I do this then h3 gets displayed at the top of the page instead of the place where I left it. I will give an easy example.

      Let’s say that sttings for my settings page looks like this:

      piklist field settings
      piklist field settings
      piklist field settings
      <h3>sth</h3>
      piklist field settings
      piklist field settings

      Now. This code outputs page with <h3> at the top. I don’t know why this happens but I’m getting this every single time. No matter where I put h3.

      BTW. I’ve also noticed that adding a table in plain html (no mattter where the code is put in he settings page) makes all the fields disappear.

    • #4763
      Steve
      Keymaster

      @kplaneta– Piklist uses the WordPress settings api, which will reject anything that’s not a field. Then Piklist will render that markup on top. You can use the Piklist HTML field to render out what you want.

      piklist('field', array(
          'type' => 'html'
          ,'label' => '<h3>My title</h3>
        ));
    • #4764
      kplaneta
      Member

      I didn’t think about it that way. Thank you Steve 🙂

    • #4765
      Steve
      Keymaster

      My pleasure… closing ticket.

Viewing 5 reply threads
  • The topic ‘How to divide settings page with h3 sections’ is closed to new replies.