• I seem to be running into a weird error when trying to set up my custom theme. Basically, my files are like this:

    angelina-marie > wordpress >wp-content > themes > wp-portfolio

    The “wp-portfolio” is a new theme I have created.

    Every time I try to load my css into the function.php, my css does not load. When I look at my website’s page source, I see it is because the css is pulling up the twenty twelve theme’s css. I do not understand why this is happening! I have totally deleted the twenty twelve theme, and have re-written this code and double-checked the syntax for days.

    Do you have any ideas as to what could be causing this problem?

    My site is angelina-marie.com. Lines 32-33 show the “twenty-twelve” files.

    Thanks in advance!

Viewing 15 replies - 16 through 30 (of 31 total)
  • Right now (8:03pm, Mountain time), I don’t see anything on your site other than a blank white page. Do you see anything when you visit your site? Is Twenty Fourteen currently the only theme you have installed?

    Thread Starter ambethoney

    (@ambethoney)

    As of right now, every time I try to go to my theme page, it brings me right to the Twenty Fourteen theme details page. It won’t allow me to look at anything else. This didn’t happen prior to updating WP. If it makes it easier, I can give you my name/password so you can actually see what the heck is going on.

    Please don’t give me (or anyone, for that matter) your login name/password.

    Do you have a copy of the Angelina Marie theme saved on your computer? If so, can you upload to your server using FTP or whatever file management application your host provides? Also, you might want to ask whether your host has a backup copy of the Angelina Marie theme.

    Thread Starter ambethoney

    (@ambethoney)

    I use Filezilla. I update my FTP daily. My theme is saved on both my computer and FTP

    If you upload the Angelina Marie theme to wp-content/themes, can you then switch to it from Dashboard > Appearance > Themes?

    Thread Starter ambethoney

    (@ambethoney)

    No. Like I said, since I updated my WP, every time I go to Dashboard>Appearance>Themes, I am directed to this:

    http://i59.tinypic.com/28tfi10_th.png
    (Screenshot of page)

    It will not allow me to change anything.
    I know it’s saying it is broken, but if I can’t change anything, I can’t fix it, so… I don’t know.

    I also tried to go to Dashboard>Appearance>Editor to see if I could change the code that way, but it’s saying “The requested theme does not exist.”

    What are the contents of wp-content/themes? If you download Twenty Fourteen from here: http://wordpress.org/themes/twentyfourteen, and upload it to your server, does your site work again?

    Thread Starter ambethoney

    (@ambethoney)

    I have a meeting at 2, I’ll have to try it afterwards.

    Again, thanks so much for taking so much time to walk through this with me!

    Thread Starter ambethoney

    (@ambethoney)

    I downloaded 2014 and uploaded it to my server. It still brings me directly to the details section (instead of being able to activate other themes), but at least that worked.

    So now I’m back to square one – how do I get my code to search for my files, and not the Twenty Twelve ones?

    Now that you have Twenty Fourteen again, can you now activate your “Angelina Marie” theme? Or do you still get an error?

    Thread Starter ambethoney

    (@ambethoney)

    I still can’t. Every time I go to Dashboard > Appearance > Themes, it still just brings me to the Twenty Fourteen theme details

    When the Twenty Fourteen theme details pop up, is there a button marked with an “X” in the upper-right corner of the panel? If so, what happens if you click on that button?

    Thread Starter ambethoney

    (@ambethoney)

    No lol I know enough to look that. I tried clicking out of it, around it, nothing. So I went to DB > A > Editor and selected my Angelina Marie theme.

    It says my theme is broken, it does not have a style sheet or template.
    I was under the impression that my functions.php code called the style sheet using the “wp_enqueue_scripts” tag. The style.css, as well as my index are both in the correct file. This was my original issue.

    Thread Starter ambethoney

    (@ambethoney)

    Okay, played around a little more, and now I’m receiving this:

    This theme is broken. The parent theme is missing. Please install the “angelinamarie” parent theme.

    If it is a custom theme, wouldn’t it already be the parent theme?

    Yes, it should be. Do you have a line starting with “Template:” in “Angelina Marie” stylesheet? If so, you should remove it. You only need that line if you’re creating a child theme. Can you post your theme’s stylesheet to Pastebin?

    What is your theme’s directory structure? It should be something like this:

    wp-content/
        - themes/
            - wp-portfolio/
                - style.css
                - index.php
                - (other files)
Viewing 15 replies - 16 through 30 (of 31 total)

The topic ‘get_template_directory Loads The Wrong File’ is closed to new replies.