Support » Theme: Mission News » Alternate layout for Title, Author, Featured Image…

  • Resolved p-rposters

    (@p-rposters)


    I was about to wade into the theme php files to arrange the html of a few components. I’ve done this with other themes, but have had mixed results.

    Here is what I am trying to accomplish:

    On my blog excerpts I would like the Blog Title | then below that the Author | then below that the Featured Image | then below that the Excerpt (with active link on the more…)

    I’d like the same layout (but smaller) for the left sidebar using the “Recent Posts Extended” widget (style 1 with featured image showing).

    Would you tell me which core theme files I would need to modify to accomplish this?

    Is this something that should be put in the child theme?

    Thanks again for all of your assistance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Yes I would definitely recommend putting these changes into a child theme so you don’t lose your updates when updating Mission News. You can click here to download a starter Mission News child theme.

    To reorder the elements for posts on the blog, it depends on the current “Post Preview” layout. For instance, you’ll want to edit “content-archive.php” if using the “Simple” layout or “content-archive-double.php” for the “Double” layout.

    Editing the post layout in the widgets is a bit more complicated. This can’t be achieved with the existing settings for the widget?

    Thread Starter p-rposters

    (@p-rposters)

    Thanks Ben.

    I had downloaded and installed the Child Theme but never really understood its purpose.

    I figured out that the changes I made to the .php pages (content-archive.php) needed to be uploaded to the child-theme folder in my wordpress installation. When I did that the changes worked just like you said.

    Thanks for the guidance.

    As far as reordering the elements in my left sidebar, my client really wants to have the reordering there as well.

    So, I’m planning to hire a fiverr to add that functionality. Is there anything you can tell me to pass on to them to help them from screwing things up? If they do “destroy” the widget can I purchase a clean install of it? Am I breaking any laws or not living up to your terms of service with the theme if I have someone make changes? I totally respect your copyright and your work (love it actually), and I don’t want to do anything disrespectful.

    I’m using style 1 with title, author byline, featured image, and excerpt.

    Let me know if you have any other guidance or thoughts.

    Thanks again for the help you’ve been.

    Theme Author Ben Sibley

    (@bensibley)

    Thanks for being so respectful of the theme. Mission News is open source so you’re free to modify it however you’d like. It uses the same GPL license as WordPress which you can read more about here if you’re interested: https://wordpress.org/about/license/

    The file that needs to be edited is found here in the theme: inc/widgets/post-list.php. The widget() function on line 52 is where you’ll want to make your edits. The output of the widget content where you can reorder the elements is between 101-151.

    If anything gets messed up, you can always download a fresh copy of Mission News to get an original version of post-list.php

    Thread Starter p-rposters

    (@p-rposters)

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Alternate layout for Title, Author, Featured Image…’ is closed to new replies.