• 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 - 16 through 30 (of 30 total)
  • Thread Starter purpleoakdesign

    (@purpleoakdesign)

    Just tried it with one and two dots. Not working. Apparently If I want to include php files I have to add this line of code:

    require_once( get_stylesheet_directory(). ‘/my_included_file.php’ );

    This goes in the function.php file in the child theme.

    I have tried this and still nothing. Mmmm… Scratching head..

    jack randall

    (@theotherlebowski)

    you shouldn’t need to do anything like that, you should be able to just have them in the folder.

    the theme folder should have:

    style.css
    index.php
    header.php
    footer.php

    you don’t need to add in a functions.php unless you need to create functions or overide the ones in twentyten. no need to add in code to call in the header and footer files, just copy them and paste them into the child theme folder.

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    There must be something in my header or footer files that is cancelling out the css.

    All I have in my child theme folder is those 4 files.

    jack randall

    (@theotherlebowski)

    well, you’re css file should be right now, try downloading the twentyten theme from the theme repository and then uploading the header.php and footer.php files from there, there may be an error in the ones that you’re using.

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    No probs and thanks for the support. Obviously the modifications I have made to the header and footer.php has messed things up a bit. Will use the original files and start from scratch and see when the error appears.

    jack randall

    (@theotherlebowski)

    when in doubt start over. see how the site behaves when you put the new files in. what mods are you trying to make to the head foot files?

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    Take a look here: https://www.shopforhandmade.com/blog

    The header and footer works perfectly, however with these header and footer files added it cancels the css. Very strange lol. I must be doing something wrong in the php files.

    jack randall

    (@theotherlebowski)

    would you be ok with me having a nose about on your sites admin?

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    I will set you up as an admin if you want? I just need an email?

    jack randall

    (@theotherlebowski)

    coolbeans.

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    That’s you added, password sent by email. ??

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    I couldn’t hold out, falling asleep lol. Will get a look at it tomorrow. I removed you as admin as i’m off to bed. I will just start from scratch tomorrow, trial and error. ??

    Cheers for the help.

    jack randall

    (@theotherlebowski)

    no worries ??

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    Started from scratch with a new copy of the twentyten theme. CSS is intact and all my old problems are gone. Except now I have another problem. My footer background image does not stretch the full width of the screen.

    I have used this line of code in the footer file to call the footer image:

    <div style=”height:inherit;width:100%;min-width:960px;margin:0;position:absolute;background:transparent url(‘https://www.wowguide101.com/wpimages/wpd7e97333_06.jpg&#8217;) repeat-x scroll bottom center; height:251px;”></div>

    The image appears but cuts off at the left. I have seen this before but I cannot remember how I fixed it.

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    Ah! Found 2 unclosed div elements. All fixed! Thanks for your help guys.

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