• Hello, I have made my first WP template from scratch (it is not a child theme) and I am getting these problems (I have already Googled intensively but found nothing)

    First of all, the structure of my template is this:

    • CSS folder: contains reset.css and font files
    • IMG folder: contains layout images
    • JS folder: contains 3 javascript files
    • my php files: footer, functions, header, index, sidebar and single
    • the style.css and the screenshot.png

    1. I always edit the files in my computer and then I upload them via FTP, but when I go to my Dashboard > Appearance > Editor, if I click on the stylesheet, the sidebar.php, the header.php or the functions.php, it shows a blank textarea. The other php files are loaded correctly. They are all in the same directory and have the same permissions.

    2. I also seem to have a problem with the styles.

    This is the blog:
    https://tucineymas.comuv.com

    This is how the blog should look like:
    https://tucineymas.comuv.com/goodone

    To check whether the styles work or not, I have made a test directory inside my theme called “goodone” and I have uploaded there my theme without the php files. Then, I clicked “View source” in my browser and copied the html to a file called “kk.html“, and I uploaded it to this directory. It looks perfect (except for little details):

    https://tucineymas.comuv.com/goodone/kk.html

    If you compare it with itself when uploaded to the main theme folder (where my index.php is):

    https://tucineymas.comuv.com/kk.html

    the design looks broken again, so since it is the same file but in different locations (with access to the same styles) I guess WordPress is doing something to the files under my theme main folder, but I really can’t figure out what it is exactly:

    So this is it, please don’t laugh at me, maybe I just need a vacation.

Viewing 1 replies (of 1 total)
  • Thread Starter xirux-nefer69

    (@xirux-nefer69)

    I discovered that WordPress is ignoring my call to the reset.css stylesheet that is under the CSS folder.

    I was calling it like this:
    <link href='css/reset.css' rel="stylesheet" />

    in the <head> of the document (which is contained inside header.php), before the call to style.css. I had to call it like this:

    <link href='<?php bloginfo( 'stylesheet_directory' ); ?>/css/reset.css' rel="stylesheet" />

    I still don’t know why the Editor allows me to edit certain files while not others.

Viewing 1 replies (of 1 total)
  • The topic ‘Can only access some files in the editor, all have same permissions’ is closed to new replies.