• Resolved bestway2go

    (@bestway2go)


    Hi,

    I have customized WordPress Default Theme to my custom design, you can see my custom design theme at http://ansardesign.com/

    I customized the following files: style.css index.php header.php footer.php single.php page.php sidebar.php.

    Every thing is done and work correctly.

    But When I go to Permalink Settings and changed from Default to Custom Structure /%postname% my custom themes is still ok except when i click on previous link to show older posts, the URL will be changed to http://ansardesign.com/page/2 and my custom design is disappear.

    What is the problem? please help me to solve this problem.

    I have tried customize the default theme for many times and it work correctly. except this website: http://ansardesign.com/

    [Moderator Note: No bumping. If it’s that urgent, consider hiring someone instead.]

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi

    (@esmi)

    That theme has not been updated in 4 years, may not longer be supported by its developer or be compatible with current/future versions of WordPress. I would strongly recommend that you switch to a more recent theme asap.

    Thread Starter bestway2go

    (@bestway2go)

    but there is 2 websites i built by customizing the same default theme, and its work properly untill today.

    Waqas

    (@speedito)

    Move your styles to the theme – currently they are located here: http://ansardesign.com/css/styles.css

    Then do the below in your header where you link to the stylesheet.

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

    Since you did not tell WP to prepend the theme folder path to the stylesheet name therefore it is only working on the home page where http://ansardesign.com/css/styles.css is valid. As soon as the URL changes it tries this http://ansardesign.com/page/css/styles.css – which is invalid

    Thread Starter bestway2go

    (@bestway2go)

    Thank you very much. my problem is solved.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Custom wordpress theme lost it styles by changing Permalink’ is closed to new replies.