• So I have my front page set up as my ‘latest posts’ page and I am looking a way to add custom blocks of HTML content throughout.

    You may laugh at my solution but this is why I am posting.. I made edits to ‘home.php’ as a way to add the custom content. Is this method suitable for what I’d like to accomplish? Also, is it compatible with future WP updates?

    Here is the site for the front page I am referring to. I’ve added Hello1, Hello2, Hello3, and Hello4 to mark off areas of the page where I’d be adding my own content.

    Any advice is very much appreciated!

    Thanks all.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Couple of comments:

    First, you might want to create a Child theme (if Arras supports it) so that future updates to Arras do not wipe out your changes.

    Second, if the custom content will change, you might want to create a custom post type and pull the content from there. That way, you can just edit or add a post of the custom type and the content will change without editing the code.

    Thread Starter hyp0xia

    (@hyp0xia)

    Thanks for the reply vtx!

    I will read up on the child themes, definitely would not want to loose my work.

    Regarding a custom post. If I understand this correctly, it’s a post created for the sole purpose of having its content constantly displayed in any given area on a page? Is there any specific way/process on accomplishing this?

    Cheers!

    Custom post types can be used for many putposes. They are just another way of classifying your data.

    To retrieve a custom post, you use a normal WP query and specify the ‘post_type’ argument. See the Codex article on Query Posts for more info.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding custom content to your front page (as a post page)’ is closed to new replies.