WordPress.org

Ready to get started?Download WordPress

Forums

Duena
[resolved] Excerpt and fixed background (21 posts)

  1. thatoneguy99
    Member
    Posted 6 months ago #

    I have been searching for a theme forever. I finally found this one and I love it. I just want to change two things and it will be perfect forever. First I want to show my whole posts on the homepage. Videos, pictures, text, the whole nine yards. I have tried all the things in the support forum and it wouldn't fix. Secondly I can't get my background to stay. I have changed the background-attachment to fixed in style.css and still nothing. It is selected as fixed also on the theme background editor. If someone could help me with these two issues I would love them forever. And ever!!! Thank you so much.

    http://www.seizemysoul.com

  2. thatoneguy99
    Member
    Posted 6 months ago #

    Well I figured out one of my own problems with a little re-reading and retry. Yeah!!! Now I just need the fixed background fixed.

  3. thatoneguy99
    Member
    Posted 6 months ago #

    Damn I lied. I fixed it to where I don't have excerpts anymore (its the whole post) on the home page but when I click on the post it takes me to that individual posts page and there is no content. :(

  4. tomaja
    Member
    Posted 6 months ago #

    For full posts see http://wordpress.org/support/topic/excerpt-22?replies=7
    For fixing background image (front page and single page/post) you should add

    body {
    background-attachment: fixed;
    }
    to your child theme css

  5. thatoneguy99
    Member
    Posted 6 months ago #

    I have decided to use excerpts but I did find a plugin "advanced excerpts" that did the trick for when I didn't want them. The background won't stay fixed no matter what. I have given up on that and just gave a fade to the bottom of my background image. Thanks for your help. I have more questions but I will post another topic for that. Or hopefully find it already answered. :)

  6. tomaja
    Member
    Posted 6 months ago #

    Funny that you said that. I tried that code on your site and it works just fine. Anyway, Im glad that you have found the solution.

  7. thatoneguy99
    Member
    Posted 6 months ago #

    This is in my child themes style.css file. It's in there right now even.

    http://pastebin.com/EZaEce19

  8. WPyogi
    Volunteer Moderator
    Posted 6 months ago #

    Your background image is not in your body tag - it's here:

    .page-wrapper:before {
        background: url("images/page-top-bg.jpg") no-repeat scroll center 0 #FF5B5B;
        content: "";
        height: 6px;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
    }
  9. thatoneguy99
    Member
    Posted 6 months ago #

    That's in the style file?

  10. thatoneguy99
    Member
    Posted 6 months ago #

    Ill have a look. Thanks.

  11. thatoneguy99
    Member
    Posted 6 months ago #

    That is not my background. That was a little bar that went across the top of the website. I deleted that file because I didn't like it. Are you saying I should change that part in order to change my background? Because right now that isn't where the background code is coming from.

  12. WPyogi
    Volunteer Moderator
    Posted 6 months ago #

    Oh sorry, my mistake.

    It looks like your child theme has a copy of the entire parent theme style.css file - that causes duplicate code and makes it MUCH harder to keep track of what you are changing. A child theme CSS file should contain ONLY changes.

    That said, try adding this to the end of your style.css file:

    body {
        background-attachment: fixed;
    }
  13. thatoneguy99
    Member
    Posted 6 months ago #

    I agree. I am new to this whole thing for the most part and am doing it ALL on an ipad with an FTP app. I don't know why but when I was originally doing things it was more difficult for me to go back and forth on the app with what to change and searching for strings and stuff like that. Now it sucks because I don't know which changes I have made in the child theme to be able to delete everything else. It will be easier for me to fix this when I get home on a REAL computer. I will see if your last suggestion changes anything. Again think you for the help!!!

  14. WPyogi
    Volunteer Moderator
    Posted 6 months ago #

    Oh yeah, iPads really aren't great for this kind of thing - drives me crazy!! 27" iMac = much better :).

    Come back if you still need help after you've had a chance to try it :)

  15. thatoneguy99
    Member
    Posted 6 months ago #

    Yeah it is extremely annoying. Everything I have done on my website I have done it on here. I am in the Navy and currently stuck in Greece, can't really complain though. I only have my ipad and I got bored so decided to fix my old blog. It's been lots of fun and staying up late working on it.
    I just tried your code at the bottom of my child's style file and nothing. It is ok I think I'm gonna give up. Having the fade to black at the bottom of my background image has kind of grown on me so ill just leave it.

  16. WPyogi
    Volunteer Moderator
    Posted 6 months ago #

    Oh wow, that's a different "when I get home" than what most people mean! I'm glad you've been able to do as much as you have and are having fun with it! And thank you for serving from a US Navy offspring. I think it may be how the CSS is being loaded - see if adding !important does anything:

    body {
        background-attachment: fixed !important;
    }
  17. thatoneguy99
    Member
    Posted 6 months ago #

    I don't mind serving. Thank your the appreciation though. It puts food in my kids mouths so I can't complain.
    It's funny because as soon as I saw the !important tag in there I remembered I tried that already. I think it's the last thing I tried before I went with the fade. I remember at one point having nothing inside my style file other than the necessities at the beginning and this piece of code. It may be worth mentioning that I could not use the themes/wordpress background editor. I could only do its in CSS. If I did it in wordpress it never changed. This may be normal I honestly don't know. Haha

  18. WPyogi
    Volunteer Moderator
    Posted 6 months ago #

    Looks like it's working now though :)! Sometimes CSS is tricky - as a tiny mistake renders it useless or in this case, that theme has multiple stylesheets so that sometimes gets tricky as well.

  19. thatoneguy99
    Member
    Posted 6 months ago #

    It's not scrolling on your browser? Or your saying that you put in the important tag and then it worked? I can't wait to use firebug. I hear so many good things about. It's still scrolling on safari and chrome apps.

  20. WPyogi
    Volunteer Moderator
    Posted 6 months ago #

    It's working fine on all browsers I have on my laptop - no IE - so it's maybe an iPad thing or maybe try clearing your cache on there.

  21. thatoneguy99
    Member
    Posted 6 months ago #

    I just wanted to say thank you for all of the help and the chit chat. Also for the support of the military. It still scrolls on my ipad but oh well. I checked with a buddy of mine just to confirm and yes it does stay fixed on his desktop. So again thank you. I wonder if the code I had in there before worked I just couldn't tell on my ipad. So is life. Haha.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.