• I’m using the Wootheme “Canvas” and I added this line to my style.css page of my child theme:

    .page-id-97 .title {display:none;}

    because I’m using a static home page and didn’t want it to say “Home” at the top. The code I used worked, but the code also shows up at the bottom of all of my pages. My website is https://bestskatedeck.com

    Can anybody help me be able to get that to disappear but still not show “Home” at the top of my static home page??

Viewing 11 replies - 16 through 26 (of 26 total)
  • Ok now, the appearance of this text .page-id-97 .title {display: none;} in the single post is NOT from style.css of child theme.

    You or someone else must have been mistakenly put it there.

    Look for a template that’s responsible for single, it’s theme specific but it’s most likely to be content.php or single.php.

    Thread Starter joycarlaina

    (@joycarlaina)

    there is a line in content.php that says

    $title_before = $title_before . '<a href="' . get_permalink( get_the_ID() ) . '" rel="bookmark" title="' . the_title_attribute( array( 'echo' => 0 ) ) . '">';
    	 $title_after = '</a>' . $title_after;

    does that “echo” have anything to do with it? I searched both content.php and single.php for the line and it’s not there.

    Did you edit the parent theme ?

    What did you do in child theme apart from stylesheet ?

    Thread Starter joycarlaina

    (@joycarlaina)

    I’ve edited the parent theme before, but I’m pretty sure I changed it all back to how it was. Then I got a child theme and the only thing I’ve changed in child theme is the stylesheet because that’s all I can see that I can edit. I got the child theme through the plug-in “one-click child theme”

    That line appears on post, page, and each post on archive page.

    It must be put there in the template, but it’s theme specific. There is no way to know how theme calls the templates.

    If the modification is not anything much, backup everything first. Then just replace the parent theme with its original. And do over the changes, this time in child theme.

    Or keep looking for that text string in all the theme files. If you have, and already know how to use, text editor that could perform search in folder, it’d take less time to find out.

    Thread Starter joycarlaina

    (@joycarlaina)

    If I replace the parent theme will i have to reput everything on my site? Including text, pictures, posts, pages?

    Generally, you won’t lose all the setting, or anything in the database just because you change theme.

    With the same theme name in the stylesheet, same theme folder name. WP doesn’t even know if it’s using an edited version or original version.

    Back then when you edited the file, did you lose anything ? No.

    This is what I would do.

    • Backup everything first.
    • Switch to use TwentyTwelve theme.
    • Delete that edited (parent) theme.
    • Upload the original (parent) theme.
    • Activate Child theme.
    Thread Starter joycarlaina

    (@joycarlaina)

    To back it up do I just go to Tools > Export? because that’s all I did and then I deleted my theme. Then I uploaded my theme again and now my site looks all weird and I don’t know how to import what I exported.

    To back it up do I just go to Tools > Export?

    No, that has absolutely nothing to do with theme file. That is for text content with metadata, it’s useful for when you move WP site to other location.

    Backing up the theme file in WP, you need to just grab the whole theme folder which is located in /wp-content/themes. Connect to the server via cPanel or FTP, navigate to /wp-content/themes and pull the whole folder of the theme into your computer.

    More details on backup.
    https://codex.www.ads-software.com/WordPress_Backups

    IMPORTANT:
    Making mistake while connecting to the server could ruin the whole site, so you’d better ask your web hosting to do this for you.

    Thread Starter joycarlaina

    (@joycarlaina)

    Ok well I didn’t do that. Now I’m lost and I’m not sure what to do. My site doesn’t look even close to right now.

    Thread Starter joycarlaina

    (@joycarlaina)

    Incase anybody cared, I fixed it! The code was also under Hook Manager > Posts. All fixed! Thanks for your help Paulwpxp and WPyogi.

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘My CSS styling shows up on every page as text’ is closed to new replies.