• Hello, I am buisling a site, but have some troubles: The site with the pages works well, and the menu.php included in the sidebar is ok. (with working links and CSS)

    But when I click in the dashboard on the ;view site: at the top, there is the index page which menu.php isn′t good looking (missing CSS) and 1 link(blog) isn’t working (page 404), but the link (blog) is working when clicking over the other pages and then click the same link (blog)

    My question is: how come? And which files are read by the https://localhost/sitename/blog ? And what is this directory doing? I understand the wordpress dir and the stuff thats inside.

    Thanks in advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • As you probably know, your theme is actually at /sitename/blog/wp-content/themes/yourthemename but it appears to be at /sitename/blog/. One result of that ‘trick’ is that relative URLs do not work as expected, and the first thing that comes to my mind is that you have some relative URLs in your code. Do you?

    Thread Starter mayarulez

    (@mayarulez)

    hello,

    I have links to CSS in all the files (template.php, page.php and index.php) as follows:

    <link href=”<?php bloginfo(‘stylesheet_directory’); ?>/css/styles.css” rel=”stylesheet” type=”text/css” />
    <link href=”<?php bloginfo(‘stylesheet_directory’); ?>/css/menu.css” rel=”stylesheet” type=”text/css” />

    This is for the files in the wamp/www/sitename as in the thems dir blog/wp-content/themes/sitename

    Only the localhost/sitename isn’t correct, and only the menu is wrong, the styles.css for the entire page is correct in that view.

    What do I have to change? And why is in the localhost/sitename the menulink from blog page=63 and in the themes dir blog page=102 ??
    Therefore in the localhost/site the blog page isn’t found (404) and after clicking first another menulink, its found.

    Hopefully is this explanation clear?

    Dick

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Ten theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Only the localhost/sitename isn’t correct, and only the menu is wrong, the styles.css for the entire page is correct in that view.

    Do you have ‘localhost’ in the WordPress address or the Site address in wp-admin->Settings->General?

    Thread Starter mayarulez

    (@mayarulez)

    In both the WP site as in the siteadress are the same:
    https://localhost/sitename/blog

    Is that a problem? And how to resolve?

    Thanx for the replies anyone btw.

    Thread Starter mayarulez

    (@mayarulez)

    mmm, I see now that while starting the sitename in the localhost I get an error : Fatal error: Call to undefined function bloginfo() in D:\wamp\www\annekerost\index.php on line 13 Call Stack #TimeMemoryFunctionLocation 10.0006686264{main}( )..\index.php:0

    Maybe there’s something wrong that causes the problem I got??

    In both the WP site as in the siteadress are the same:
    https://localhost/sitename/blog

    Is that a problem? And how to resolve?

    It should work fine if and only if you are viewing the site on the same computer that it is hosted on. If you try to view it from another computer, for example on a LAN, you will have problems.

    ‘Undefined function’ errors usually mean that files are missing. Are you sure that your WordPress install is complete.

    Have you tried what esmi suggested?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Wondering how the hyarchie works…?’ is closed to new replies.