Announcement

Collapse
No announcement yet.

Minor WordPress coding help needed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Minor WordPress coding help needed

    Hi all

    In my header I have php code that calls the site title and then underneath that, php code that calls the site tag line. This appears to be displayed as H1 and H2 headings. To the right of that on the opposite side of the page, I want to align a picture.

    Kinda like so:

    Page Title ------------------------------------------------------- "here I want to call php code to display something"
    This is my tag line bla bla bla di bla bla


    But no matter where I stick my extra php code, it either goes above or below the page title or tag line. I can't seem to get it next to it and aligned to the right
    Makes sense?

    (The --------------------- is just to move the text up in this ChaosGroup forum, it doesnt want to leave long blank spaces)
    Kind Regards,
    Morne

  • #2
    does the template allow for something up there?It's probably more of a css thing, than a PHP thing.
    Bobby Parker
    www.bobby-parker.com
    e-mail: info@bobby-parker.com
    phone: 2188206812

    My current hardware setup:
    • Ryzen 9 5900x CPU
    • 128gb Vengeance RGB Pro RAM
    • NVIDIA GeForce RTX 4090 X2
    • ​Windows 11 Pro

    Comment


    • #3
      Yes possibly I can just adjust the h1 and h2 css for the header. Any tips?
      Kind Regards,
      Morne

      Comment


      • #4
        go to apperacnec -> editor, and look at your header.php. Or, styles way at the bottom (right side)
        Bobby Parker
        www.bobby-parker.com
        e-mail: info@bobby-parker.com
        phone: 2188206812

        My current hardware setup:
        • Ryzen 9 5900x CPU
        • 128gb Vengeance RGB Pro RAM
        • NVIDIA GeForce RTX 4090 X2
        • ​Windows 11 Pro

        Comment


        • #5
          Originally posted by glorybound View Post
          go to apperacnec -> editor, and look at your header.php. Or, styles way at the bottom (right side)
          Yes I looked at the header. This is where I added the php to call the stuff that should go on the right, but keeps going underneath. Didnt look at styles however, will browse around there and see what its about...
          Kind Regards,
          Morne

          Comment


          • #6
            OK so got sort of further. Apparently its a good idea to create a child theme 1st, before you start fiddling with the code. But still no answer on how to actually align the thing next to the header yet.
            Kind Regards,
            Morne

            Comment


            • #7
              eventually got it working with div tags. float:right and inline blocks
              but now the one on the right I want to align to the bottom of the 1st, but with HTML5, the align feature is no longer supported. So how would I vertical align with a div tag in html5?
              Kind Regards,
              Morne

              Comment

              Working...
              X