• Resolved purpleoakdesign

    (@purpleoakdesign)


    Hey everyone I am trying to set up a new blog and make it match the website. Everything seems to have worked however the main body content has no formatting and seems to be all left aligned.

    Am I missing something silly?

    The blog can be found here: https://www.shopforhandmade.com/blog

    Thanks for any input.

    Andrew

Viewing 15 replies - 1 through 15 (of 30 total)
  • is that a different problem from the resolved one here: https://www.ads-software.com/support/topic/body-text-alignment?replies=1 ?

    if not, please do not start a new topic because you don’t have got any replies;
    continue with the existing topic and add more information there.

    what method have you used to integrate WordPress?

    what is the main stylesheet for the blog?

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    Ah right. I thought my previous post got lost in the pile so didn’t want to post more information there. Will do that in future.

    I have created a new theme and modified the header and footer files. The header and footer are perfect. However the main body content is not displaying correctly.

    I think there is something silly I am missing and wanted a fresh pair of eyes.

    jack randall

    (@theotherlebowski)

    is this a child theme?

    jack randall

    (@theotherlebowski)

    you appear to have practically no css…

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    The theme is a copy of twentyten. So all files being edited do not change the original twentyten theme.

    jack randall

    (@theotherlebowski)

    i have a feeling you’ve not called in the css from the parent theme. there’s practically no css anywhere in your theme!

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    Call in the CSS from the parent theme. I rarely use WordPress so forgive me for sounding utterly useless but how would I do that?

    jack randall

    (@theotherlebowski)

    when you create a child theme you need to use the @import rule in the new style’s style.css file to call in the css styles that make the parent theme work.

    sadly you can’t just make a full copy of a theme and install it, it has to be in the parent -child form so twentyten is the parent and your new theme is the child.

    read this article on child themes. if you have any questions just post them and i’m sure we’ll be able to help

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    Ah, I thought I was being clever just copying the main theme. I will set up the child theme properly and hopefully then all will be good.

    Thank’s for the advice. ??

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    Set up the child theme and called in the style.css from the twentyten parent.

    I need the header and footer.php files though. It all works and uses the parent css until I include the header and footer.php files and then it ignores the css formatting.

    jack randall

    (@theotherlebowski)

    where are you including the header and footer files?

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    I am placing them into the child theme folder. All I have in this folder is the header, footer php files and the style.css file.

    jack randall

    (@theotherlebowski)

    can you post the first chunk of your css file from the child theme?

    it should look like

    /*
    Theme Name:     Twenty Ten Child
    Theme URI:      https://example.com/
    Description:    Child theme for the Twenty Eleven theme
    Author:         Your name here
    Author URI:     https://example.com/about/
    Template:       twentyten
    Version:        1.0
    */

    with

    @import url("../twentyten/style.css");

    not sure why it wouldbe going all over the place if you add the header.php and footer.php files to the child theme directory…

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    /*
    Theme Name: Twenty Ten Child
    Theme URI: https://shopforhandmade.com/
    Description: Child theme for the Twenty Ten theme
    Author: Andrew McMaster
    Author URI: https://shopforhandmade.com/about.html
    Template: twentyten
    Version: 1.0
    */

    @import url(“https://www.shopforhandmade.com/blog/wp-content/themes/twentyten/style.css”);

    jack randall

    (@theotherlebowski)

    right, that’ll be it: you’re @import rule is pointing to the wrong place

    @import url("../twentyten/style.css");

    is all it should need to be (if it doesn’t work the lose one of the dots before the first / and see if that helps…

Viewing 15 replies - 1 through 15 (of 30 total)
  • The topic ‘Body Content All Screwed Up’ is closed to new replies.