WordPress.org

Ready to get started?Download WordPress

Forums

Theme Preview Problem (8 posts)

  1. kitkaplan
    Member
    Posted 4 years ago #

    I posted this in Theme section weeks ago but got no helpful responses. I am using hostgator and added some themes and then some plugins. When I try to change themes and hit PREVIEW, it shows the CURRENT theme, not the theme I want to preview. I have to activate the them to see it. I deactivated all the plugins but got the same result.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Have you tried previewing themes with all plugins deactivated?

  3. kitkaplan
    Member
    Posted 4 years ago #

    yes i did.

  4. Beer
    Member
    Posted 4 years ago #

    Same issue. Any luck fixing it?

  5. Beer
    Member
    Posted 4 years ago #

    in wp-admin/themes.php around line 206, I see the preview link starts with:
    $preview_link = esc_url(get_option('home') . '/');

    You could change that to get_option('siteurl'), the preview will then be correct and display the theme, but the content displayed will be 404 content.

    Hope this helps someone else fix the issue.

  6. kitkaplan
    Member
    Posted 4 years ago #

    You shouldn't have to change code to get it to preview properly. I haven't seen this in my other sites.

  7. Beer
    Member
    Posted 4 years ago #

    I'm not sure why I didn't follow-up, sorry. I think I logged out, cleared cookies and then it started working fine again for me, without needing to update any code.

  8. kitkaplan
    Member
    Posted 4 years ago #

    I'm just going to start over.

Topic Closed

This topic has been closed to new replies.

About this Topic