• Hi,
    I’m using the theme Modularity Lite and created a child theme which was working fine. I then copied style.css across from parent to child and can see it listed on FTP.

    However, in WP, and with the child theme selected, when I go into Appearance>>Edior to try and edit the style.css it goes to a page WordPress > Error – ‘The requested theme does not exist’

    I then go back into my Dashboard and WP has automatically selected the theme ‘Twenty Eleven’ for me and my Modularity child theme has been deleted from WP, although I can still see it listed on FTP.

    I have tried deleting both parent and child theme and reinstalling and activating (twice); created new child themes and called them different names (four times), but each time, WP deletes the theme!

    Can anyone please advise why it is doing this. Is it a bug? Or something that I am doing?

    I would really appreciate help as I just cannot work this one out and I can’t progress with my site.

    Thanks to anyone who can shed any light on this.

    Susie
    Link to site: https://www.susierichards.com

Viewing 10 replies - 1 through 10 (of 10 total)
  • Do you have the style.css for the child theme set up correctly — see child theme. You MUST have the information header set up as described in the codex article — it’s not just copying the stylesheet. And in fact, you don’t need to copy the contents at all — you just need to put in the new stylesheet the CHANGES from the parent theme styles. That’s not what is visible now — but maybe that’s because the child theme is not active? If so, can you post (in pastebin if longer than 10 lines) the stylesheet for the child theme?

    The other thing you could try is switching to the default WP theme and setting up a child theme there — and see if it does the same thing.

    Also, check the versions of WP and the theme — make sure there are no version issues.

    Thread Starter SRCreative

    (@srcreative)

    Hey, thanks for your response, I’m extremely grateful, and have read the article in detail. I believe I have it set up correctly now and am using the child theme.

    I wanted to change the font size of my page links and site title to 30px. So, instead of copying the entire style.css file, I have simply added the following code underneath the information header in the child style.css

    @import url(“../modularity-lite/style.css”);

    .content h2 {
    font-family: Georgia, serif;
    font-size:30px;

    But the changes haven’t happened. Do I need to add in any other code?

    Okay, now it’s working, but you are missing the closing bracket at the end of that code

    put one of these — on the line below font-size:

    }

    LOL — yes, all of us have been there — code is VERY unforgiving — one teesy, tiny error and it’s all messed up!

    Thread Starter SRCreative

    (@srcreative)

    I don’t believe it, it works!! I cannot thank you enough. You are my hero of the day!!! EXTREMELY grateful.

    Whilst I have your attention, (keen not to lose you yet!) on my 2nd page, ‘Work’ I have inserted a gallery. I would like to be able to have a thumbnail image different to the image you see when the thumbnail is clicked on. I have looked through so many gallery plugins but cannot find one that does this. Do you happen to know how I could do this?

    Thank you ??
    Susie

    You’re welcome! I don’t know much about gallery plug-ins, although it seems that NextGen is very popular — and I imagine it has the capability since that’s pretty basic..

    Thread Starter SRCreative

    (@srcreative)

    ok, will check out NextGen. Thanks for tip.

    Another question I think you may know… if I want to remove something such as the ‘Leave a reply section’ and Post comment button do I find this, perhaps in functions.php? and copy the file and put /*…*/ around the appropriate code? However, does this simply hide it? I would like to put a text section at the bottom of my home page and am worried that when I have figured out how to do this it won’t work because hidden underneath is the ‘Leave a reply section’.
    Hope my question makes sense???
    Thanks,
    Susie

    The best and easiest way to get rid of unwanted text or page elements is to use “display: none;” in the CSS. You can use Firebug to identify the CSS code that you want to change or hide and then add to the stylesheet like this — for the example you mentioned:

    #comments, #respond {
    display: none;
    }

    But this will hide that section on every page in your site — so if you only want to do it on certain pages, you’d need to a class that is specific to that page or template — look at the classes in the body tag.

    You CAN also make a custom template and modify the php code as you mentioned — either with commenting it out or deleting it. Using Comments code has the same effect as deleting it and won’t affect other things you want to put on the page in that space — the space is not taken by the commented out code anymore.

    Also, depending on your theme, there may be an option for each page — whether you want comments to display — and that’s the best way to go if it’s there.

    Thread Starter SRCreative

    (@srcreative)

    Sorry for the delay in thanking you. I am SO GRATEFUL for your responses, it’s helped me no end. So I’m able to start removing elements from my page but I’m sure I’ll need more help.

    Thank you thank you thank you!
    Susie

    Thread Starter SRCreative

    (@srcreative)

    Hi again,
    Please let me know if you would like me to post this question as a new topic in the forum….

    I would like to add a text box on each page, below the logo (yet to replace the site title) and nav bar but above the homepage slideshow. It’s to be the width of the slideshow (840px x 120px). Are you able to point me in the right direction on how to do this. I would be so grateful. I feel I’m really getting somewhere with my site at last!
    Thanks, Susie

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘WordPress keeps deleting my Child Theme! V. frustrating!’ is closed to new replies.