WordPress.org

Ready to get started?Download WordPress

Forums

Theme won't apply (22 posts)

  1. slycom
    Member
    Posted 6 years ago #

    Hi,

    It seems I just can't apply the theme on the blog page. I get is all the information on a straight column to the left of the page... ??

  2. kiersten
    Member
    Posted 6 years ago #

    My theme is also not working. Earlier I was having problem where my permalink pages weren't loading but my homepage http://kmareka.com was. So I went into options and looked at the two boxes, one for the domain name which I had at http://kmareka.com and one for the Blog URL which I had at http://kmareka.com/index.php. I changed the Blog URL to http://kmareka.com and updated, and then ther permalink pages were working and everything seemed fine. But then I went to try old permalinks from other sites and found they were searching for the address with the /index.php in the tag so then I went back to the site and put the /index.php back in on the options, updated, and suddenly I got an error message and now I get an error message when I try to go to my dashboard, so I can't go in and change things back. Help! Thanks, Kiersten Marek

  3. rudolf45
    Member
    Posted 6 years ago #

    The values in the two URI fileds can NOT end to file names. Only folder names (without trailing slash)!

    You may want to try to add the index.php to the permalink settings, but don't mess with it in the Options.

    To fix it: http://www.tamba2.org.uk/wordpress/site-url/

  4. kiersten
    Member
    Posted 6 years ago #

    I have wp 1.5. When I go into my database I do not see a file for "home". Could it have another name?

  5. kiersten
    Member
    Posted 6 years ago #

    Sorry, I did find the "home" file and changed it to http://kmareka.com. However, I am still getting an error message when I try to go to my dashboard and my theme is not applying to my site. Kiersten

  6. slycom
    Member
    Posted 6 years ago #

    Here's how this it is presented to me: http://www.elsiane.com/blog . It tells me theme applied and them this??

  7. kiersten
    Member
    Posted 6 years ago #

    The real problem is that I can't get into my dashboard. What would be preventing me from being able to do that?

  8. rudolf45
    Member
    Posted 6 years ago #

    kiersten, you have to change BOTH values: site_url and home to http://kmareka.com
    (note: http://www.example.com and example.com are not the same!)

    Seemingly you did not change the values, it is still looking for the stylesheet in the wrong place:
    @import url( http://kmareka.com/index.php/wp-content/themes/nolimits/style.css );

  9. rudolf45
    Member
    Posted 6 years ago #

    I did find the "home" file

    Just for the record: there are no "files" in the database. You change the data or entry or values... just follow exactly the tutorial.

  10. kiersten
    Member
    Posted 6 years ago #

    They are both changed to http://kmareka.com

    But the theme is not applying.

  11. rudolf45
    Member
    Posted 6 years ago #

    My friend, believe me, it is NOT changed. Look at the source code and you will see it is looking for the stylesheet in the wrong place: at the URI with index.php at the end.

  12. kiersten
    Member
    Posted 6 years ago #

    I know this is fixable because all I did was change the value in the blog URL on the options page. If I can just go to the place in that page and change it -- I assume that is what changing "site URL" and "home" does. But won't this make all the links I have from other sites get error pages? If so, I guess that's the price to pay to have the site back up. But why was the site working before with one box of options saying http://kmareka.com and the Blog URL box saying http://kmareka.com/index.php. What changed to make the permalink pages suddenly stop working (error message) when the homepage was still working? That was the original problem and the reason why I went in and looked at my options page and then made the change, which seemed to work initially with getting the permalink pages to come up. Thanks so much for your help.

  13. rudolf45
    Member
    Posted 6 years ago #

    First things first.
    1. Priority #1 - make the site work properly.
    2. Think about old outside links later: you can ask for a htaccess redirect for those, and I am sure somebody will help.
    3. Is the stylesheet link by any chance hardcoded in the theme's header.php file?
    4. I am also wondering how did it work with a faulty URI in the options...

  14. kiersten
    Member
    Posted 6 years ago #

    This is the contents of my header php file. I don't believe there is anything in it hard-coded:

    <?php
    @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    if (!isset($_GET["page"])) require_once('admin.php'); ?>
    <?php get_admin_page_title(); ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title><?php bloginfo('name') ?> › <?php echo $title; ?> — WordPress</title>
    <link rel="stylesheet" href="<?php echo get_settings('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" />

    <script type="text/javascript">
    //<![CDATA[

    function customToggleLink() {
    // TODO: Only show link if there's a hidden row
    document.write('<small>(<?php _e('Show hidden'); ?>)</small>');
    // TODO: Rotate link to say "show" or "hide"
    // TODO: Use DOM
    }

    function toggleHidden() {
    var allElements = document.getElementsByTagName('tr');
    for (i = 0; i < allElements.length; i++) {
    if ( allElements[i].className.indexOf('hidden') != -1 ) {
    allElements[i].className = allElements[i].className.replace('hidden', '');
    }
    }
    }

    <?php if ( isset($xfn) ) : ?>

    function GetElementsWithClassName(elementName, className) {
    var allElements = document.getElementsByTagName(elementName);
    var elemColl = new Array();
    for (i = 0; i < allElements.length; i++) {
    if (allElements[i].className == className) {
    elemColl[elemColl.length] = allElements[i];
    }
    }
    return elemColl;
    }

    function meChecked() {
    var undefined;
    var eMe = document.getElementById('me');
    if (eMe == undefined) return false;
    else return eMe.checked;
    }

    function upit() {
    var isMe = meChecked(); //document.getElementById('me').checked;
    var inputColl = GetElementsWithClassName('input', 'valinp');
    var results = document.getElementById('rel');
    var linkText, linkUrl, inputs = '';
    for (i = 0; i < inputColl.length; i++) {
    inputColl[i].disabled = isMe;
    inputColl[i].parentNode.className = isMe ? 'disabled' : '';
    if (!isMe && inputColl[i].checked && inputColl[i].value != '') {
    inputs += inputColl[i].value + ' ';
    }
    }
    inputs = inputs.substr(0,inputs.length - 1);
    if (isMe) inputs='me';
    results.value = inputs;
    }

    function blurry() {
    if (!document.getElementById) return;

    var aInputs = document.getElementsByTagName('input');

    for (var i = 0; i < aInputs.length; i++) {
    aInputs[i].onclick = aInputs[i].onkeyup = upit;
    }
    }

    window.onload = blurry;
    <?php endif; ?>

    //]]>
    </script>

    <?php do_action('admin_head', ''); ?>
    </head>
    <body>

    <div id="wphead">
    <h1><?php echo wptexturize(get_settings(('blogname'))); ?> <span>("><?php _e('View site') ?> »)</span></h1>
    </div>

    <?php
    require(ABSPATH . '/wp-admin/menu-header.php');

    if ( $parent_file == 'options-general.php' ) {
    require(ABSPATH . '/wp-admin/options-head.php');
    }
    ?>

  15. kiersten
    Member
    Posted 6 years ago #

    To clarify, this came about because earlier today my homepage was opening with the wordpress theme, but permalink and category pages were giving me an error message. I went into the options for wordpress and there were 2 boxes, one for domain and one for site URL. In these slots originally, the first had http://kmareka.com and the second had http://kmareka.com/index.php. I thought perhaps this was what was causing the error messages, so changed the second box to just http://kmareka.com. Then I viewed the site and the category pages and permalink pages were working so I thought everything was fixed. Then I realized outside links would be looking for the code with the /index.php in the code, so I went back and tried to change the second option to http://kmareka.com/index.php to see if the pages would work. When I hit "update" I got an error message and ever since then I have not been able to get into wordpress. They recommended I go into myphp database and change "site url" and "home" values to http://kmareka.com but the theme is still not applying.

  16. kiersten
    Member
    Posted 6 years ago #

    I'm not sure why I can't go to the dashboard for my site -- I get an error message. But the content of the site is loading the wordpress features such as permalink and category pages are working, but the theme page is not. I noticed that I have an "option name" called called "recently edited" that has this content:

    a:5:{i:0;s:36:"wp-content/themes/nolimits/index.php";i:2;s:36:"wp-content/themes/nolimits/style.css";i:3;s:39:"wp-content/themes/nolimits/comments.php";i:4;s:39:"wp-content/themes/nolimits/category.php";i:5;s:40:"wp-content/themes/nolimits/thefuture.php";}

    I notice that this part has a feature for "autoload" which is on "no." whereas almost everything else is on "yes" for autoload.

    Could these things be key to the problem?

  17. rudolf45
    Member
    Posted 6 years ago #

    That is NOT your theme's header.php file, for sure. That file is in the wp-admin and it is called admin-header.php. Really, you should read more carefully (and post less).

    And don't post code here, I hate to try to read it. Use http://wordpress.pastebin.ca in case you need to post code.

    Finally, don't mess with the database and don't touch anything when you don't know what you are doing. Just read the questions people ask and give precise answers.

  18. kiersten
    Member
    Posted 6 years ago #

    Okay. I am still trying to get http://kmareka.com/wp-admin, my dashboard page, to work instead of giving an error code. Permalink pages and category pages are working now. But it's the website theme that is not working and the dashboard page comes up as an error page.

  19. rudolf45
    Member
    Posted 6 years ago #

    You are a stubborn person.
    1. No, your site does not work. If there is no stylesheet - it does NOT work. Period.
    2. NO, it will NOT work, until you change that freaking URL, removing the index.php from it.

    When in tha database, after editing the home and site_url values, did you scroll down and hit the GO button?

  20. kiersten
    Member
    Posted 6 years ago #

    Okay, I got the theme to work again. What I had to do was go through the wp login page, then go into the wp-admin page by typing that into the address bar and then change the options that I had messed up. Thanks for your help. Sorry if I was not listening carefully. You are very helpful and kind to work with me. Regards, Kiersten Marek

  21. kiersten
    Member
    Posted 6 years ago #

    Now all that is left of my problem is that my "pages" as opposed to my posts are still inserting the index/php in the code and hence giving an error message, such as this:

    http://kmareka.com/index.php/?page_id=288

    Any ideas on what I need to do?

  22. kiersten
    Member
    Posted 6 years ago #

    Never mind. I figured it out. Thanks again for all your help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags