Viewing 14 replies - 1 through 14 (of 14 total)
  • In style.css around line 528 look for this code

    .home .sticky {
    background:#F2F7FC none repeat scroll 0 0;
    border-top:4px solid #000000;
    margin-left:-20px;
    margin-right:-20px;
    padding:18px 20px;

    change 4px to 0 or take the border-top line out and save style.css

    Thread Starter aquastar

    (@aquastar)

    Thanks, that didn’t work for some reason but Ive found why it occurs, if you make a post “sticky” the black line will appear above it (only on sticky posts). Is there any way to remove that black line on a sticky post?

    Also in regards to templates for a child theme. I noticed that if I change a template on Twenty Ten it also changes the child templates (and visa versa) is it meant to work that way? Are they always a direct copy of each other?

    Is there any way to remove that black line on a sticky post?

    We can’t see a sticky post on your site’s front page.

    Are they always a direct copy of each other?

    No. The child uses the parent’s template files only if the template does not exist in the child’s folder.

    http://codex.wordpress.org/Child_Themes

    Thread Starter aquastar

    (@aquastar)

    No. The child uses the parent’s template files only if the template does not exist in the child’s folder.

    Ok thanks, that’s how I thought it should work but when I activated the child theme all the twenty ten templates copied across to the child theme and are visible under child templates, a direct copy they are. So should I delete all of them and just have the ones that I have made changes on? That’s what I really don’t understand

    The post is sticky now πŸ™‚

    Thread Starter aquastar

    (@aquastar)

    For example when I activated the child theme all the Twenty Ten templates also appeared under the child theme. I edited the page template in child themes but then when I go to the page template in Twenty Ten the changes are there to. That’s whats confusing me lol

    when I activated the child theme all the twenty ten templates copied across to the child theme and are visible under child templates, a direct copy they are

    I’ve never seen that before and I don’t see how it could work.

    Thread Starter aquastar

    (@aquastar)

    Thanks but that’s exactly what happened, If that’s how it works I don’t understand the point of child themes

    Is it because im using @import url(“../twentyten/style.css”); in the css, Should I create a full css without this rule?

    Also, how do you remove the black line at the top on “sticky posts”?

    I don’t understand the point of child themes

    Review Child_Themes.

    Should I create a full css without this rule?

    Not necessarily.

    how do you remove the black line at the top on “sticky posts”

    govpatel gave the answer to that above.

    Thread Starter aquastar

    (@aquastar)

    Thanks anyhow, I tried that fix but it didn’t work as mentioned above

    In regards to the templates, in WP control panel is says

    The template files are located in /themes/twentyten. The stylesheet files are located in /themes/minisite. Minisite Theme uses templates from Twenty Ten. Changes made to the templates will affect both themes.

    A stylesheet isn’t a template file.

    Thread Starter aquastar

    (@aquastar)

    lol I know that, the stylesheet is the css, thanks anyhow for your assistance, I will try to work it out

    I just clicked on your website and I do not see any line did you refresh

    The object of using a child theme is that mostly the changes you make are in style.css and functions.php saved in child theme.
    when the child theme is active it will loaded first and if there is anything can not find then wordpress will load the parent theme.

    If in future you update wordpress or the theme all files will be over written and you will loose the changes if you did not make child theme and made changes on same files that are in parent theme in child theme.

    Thread Starter aquastar

    (@aquastar)

    Thanks govpatel for the explanation, that’s exactly how I understand it after reading the info and links that esmi provided. I think that I’m not expressing and explaining myself correctly in my posts above, sorry for that

    BUT the thing that I don’t understand about it – lets say that I change some code in

    /themes/minisite/templates/page.php and save it – then I go to /themes/twentyten/templates/page.php the same changes are there too. That’s what I don’t really understand about it

    —————–

    In regards to the black line, it appears only when you make a post sticky. I have refreshed the page and can still see it

    http://www.romantictubs.com/

    It appears above the post box heading, can you see it there? If so is there some code that I can add to the child css to remove it?

    Thanks….

    in you child theme style.css if that the theme you using around line 528

    .home .sticky {
    background:#F2F7FC none repeat scroll 0 0;
    border-top:4px solid #000000;
    margin-left:-20px;
    margin-right:-20px;
    padding:18px 20px;
    }

    This still border-top 4px change that 0 or delete the line.

    As for page.php if you made change in child theme page.php and not touch parent file then it should not be there.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Black line under ads’ is closed to new replies.