• Resolved roselaw86

    (@roselaw86)


    I’m trying to do two things. First, I’d like to place a white background and purple outline around three sections of text on my home page. The section have different font styles (paragraph and header 2), so simply putting the style within the <h2> and <p> tags doesn’t do what I want. The <body> attribute does nothing. I also have all the text within one area, using separate columns so I cannot simply make the background of all pages text white.
    Secondly, I’m having trouble centering the header image on full screens. It sticks to the left of the main content area. And underneath the header image, I’d like to widen the gradient of the menu bar to span the page, while keeping the menu centered.
    I’m using Pilot Fish theme, and my page is here: http://slroselaw.com/wordpress/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Do you have a Child Theme or Custom CSS plugin?

    Thread Starter roselaw86

    (@roselaw86)

    I’m using this through GoDaddy’s WordPress installation, so I only have access to the files from the editor and file uploader. So no on the child theme (though I do periodically save copies of the edited files available to me), and I do not know what a Custom CSS plugin is.

    Thread Starter roselaw86

    (@roselaw86)

    I have FTP access. But whenever I choose a new theme, it automatically uploads the files. Again, I have any files backed up so that I don’t lose my theme customization.
    Can you just answer my questions please? Don’t mean to be rude, but I didn’t ask anything about where my files are saved and what copies I have or child themes. I see this a lot on questions people ask. Instead of their questions being answered, one or more people/moderators jump on and talk about child themes. I’m comfortable modifying the files, I worked with Dreamweaver before this and it’s how I’ve learned to build and edit pages.

    I’m sorry but we are not comfortable advising anyone to edit the parent theme in these situations. First create a child theme for your changes. Or install a custom CSS plugin.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Unfortunately a lot of volunteers aren’t comfortable giving bad advice, such as recommending to modify theme files.

    Edit: Well, that’s actually fortunate in the long term.

    It’s also reasonable to expect a WordPress-related answer in these forums. If you’re looking for a solely CSS-specific answer, perhaps you’ll be better asking in CSS-specific forums. Forums such as http://csscreator and http://welovecss.com .

    Thread Starter roselaw86

    (@roselaw86)

    I hate not having topics resolved, especially when I search later and try to find a solution from other’s posts…
    I managed to create a child theme with the help of the company IT guy, GoDaddy customer support and trial and error. It was a pita, so I’ll certainly share!
    I created a child theme by copying all theme files (which is a pain, but doable) in the lowest folder possible. Some files would not copy by themselves, so needed to be copied through the copy folder and contents option on the FTP uploader in GoDaddy. However, it will only copy files one folder deep. Once the theme was created, it shows up with the same name as the parent theme regardless of what I named the child folder, which made it slightly confusing but was doable.

    As for my original issue, I managed to do basically what I needed with divs:
    ‘<div style=”border: 2px solid midnightblue; padding: 10px; border-radius: 5px; margin: 10px;”>
    <h2 style=”margin-bottom: 10px;”>heading</h2>
    <p style=”margin-bottom: 0;”>text</p>
    <hr />
    <h2 style=”margin-bottom: 10px;”>heading</h2>
    <p style=”margin-bottom: 0;”>text</p>
    <hr />
    <h2 style=”margin-bottom: 10px;”>heading</h2>
    <p style=”margin-bottom: 0;”>text</p>
    </div>’
    This made everything nice and neat and it shows up more or less exactly how I wanted. (The page is moved to the homepage for the entire site, also. My original link no longer leads to any page).

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Body Background and Menu/Header’ is closed to new replies.