• anotherlittleadventure

    (@anotherlittleadventure)


    Hi Everyone.

    I have taught myself coding and built a website from scratch. I then went to convert that site into a WordPress site and develop a WordPress theme. I have managed the basics and have the theme created, but the vast majority of the site is still hardcoded which I need to fix!

    How do I create the main layout sections of my content on both my home page and internal pages, so they can be edited in the backend of WordPress?
    Examples of what i want to create for the internal sections/layouts are:

    1. The text box and the image that sit side by side in two columns that alternate.
    2. Full-width bar where i can put columns of content into. see this page for an example [ redundant link removed ]

    How should these sections be developed so I can add the images and text within WordPress itself, but still maintain the layout, background colours etc??

    Can someone please help me or point me towards some clear documentation? I really want to learn, but the documentation i am reading is confusing as it references Posts rather than Pages and doesn’t seem to reference theses internal layouts.

    Please help!

    • This topic was modified 5 years, 4 months ago by t-p.
    • This topic was modified 5 years, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not a Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • There’s a few things that you can do. Some aren’t to bad, and some can bea bit more excessive.

    One thing to point out though, is that ‘Pages’ are ‘Posts’. Pretty much everything is a ‘Post’ as far as WordPress is concerned, and it’s just that a csutom post type makes it handle the extra bits a little differently as they are needed.

    For layouts, the new thing is Gutenberg. I’ve looked at it a bit (not as much a sa lot of others here), but that’s the way that I’d suggest going unless you want to look at a commercial page builder plugin.

    Thread Starter anotherlittleadventure

    (@anotherlittleadventure)

    Thanks for the feedback on the Posts vs Pages.

    I’d really like to steer away from the page builder plugins – I’ve used Elemenetor before and it is useful but I really would like to learn how to build a Theme properly.

    With Gutenberg, I can’t see a way to use their layouts to replicate what I have in my current design – if you look at the home page you will see the main section has a two-column layout with alternative text/image boxes.

    If someone can please give me some more direction on how to code this properly? I don’t know if it needs to be a widget? Or if there is more PHP code that I am missing to develop these layouts?

    Thanks in advance!

    Hi there,
    Actually i’m using custom links and in there i hardcoded links like https://localhost/folderName/#ID. but as a theme developer i want it to be dynamic, like something that will fetch the siteurl from database and set it link as siteurl/#ID so that when user will download my theme and configure it with whatever folder he will named, my custom links should must work.

    • This reply was modified 5 years, 3 months ago by ahsanazeem.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Theme Development Help’ is closed to new replies.