• islandhomie

    (@islandhomie)


    I logged on to my site this morning and everything was going great. I installed the WP-Commerce plugin on my site, but didn’t want it anymore so I deleted it. When I went back to the front end, all my menu buttons stopped working! I really need immediate help on this. All the menu buttons I click on revert back to the home page. How do I troubleshoot this???? Immediate help is needed. Thanks a mil in advance.

Viewing 10 replies - 16 through 25 (of 25 total)
  • Nihad Nagi

    (@nihadnagi)

    Specify the name of the Menu plugin, you are using.?

    What other menu plugins have you installed (activated or deactivated), and not deleted, in your pursuit for the menu you like?

    Thread Starter islandhomie

    (@islandhomie)

    Yes this is the header I got from the template files. Ghostpool is the company that makes the template. The name of the template is ‘Tarnished’. You could look it up if that helps: https://www.ghostpool.com/. So where it says <?php require(ghostpool_inc . ‘options.php’); ?>, this must be referring to the theme options of the template.

    Nihad Nagi

    (@nihadnagi)

    Additionally, send me a link to your homepage?\

    Thread Starter islandhomie

    (@islandhomie)

    here’s the link to my site: https://smartsaveranu.com/

    esmi

    (@esmi)

    As you are using a commercial theme, you need to seek support from the theme’s vendors.
    https://themeforest.net/forums/topic/themeforest/themeforest

    Nihad Nagi

    (@nihadnagi)

    I debugged your website, and I got this warning:

    Resource interpreted as Image but transferred with MIME type text/html: “https://smartsaveranu.com/wp-content/themes/tarnished/images/page-stripe-brown.png&#8221;.

    I browsed the page source to check it out, and found:

    <link rel=”stylesheet” href=”https://smartsaveranu.com/wp-content/themes/tarnished/css/style-brown.css&#8221; media=”screen” />

    <style>body {background: url(https://smartsaveranu.com/wp-content/themes/tarnished/images/page-bg-black.png) repeat;}</style>

    As you can see from the above that your URL based is not between ” “.So, an image URL was expected but text was passed as an argument. This scrambled the rest of the page html tags.

    Go to your theme “header.php” and

    All you have to do is to place the url between quotes, like the following:
    <style>body {background: url(https://smartsaveranu.com/wp-content/themes/tarnished/images/page-bg-black.png) repeat;}</style>.

    I think this is the problem, try it.

    Please let me know, if it’s fixed.
    Regards

    Nihad Nagi

    (@nihadnagi)

    Did it work? I hope so.
    From the silence, I can tell you are busy fixing things.

    But at-least, you should tell me, if it did.
    Anyway,
    Regards

    Thread Starter islandhomie

    (@islandhomie)

    Hey Nihad…I havent tried it as yet. Actually gonna work on it shortly. Will definitely keep u updated. Many many many many thanks so far!

    Thread Starter islandhomie

    (@islandhomie)

    Hey Nihad I cant seem to find the line of code no where in the header.php file. I looked everywhere and can’t find where I should put the quotation marks. I’ve been at this for over an hour now an still nothing. Any help regarding this would be greatly appreciated.

    Nihad Nagi

    (@nihadnagi)

    No problem, I wanted to ensure that everything is fine.

    Note the following:

    background: url(https://smartsaveranu.com/wp-content/themes/tarnished/images/page-bg-black.png)

    In this line of code, note that url(http…….)
    there are no quotations after the brackets.
    it should be:
    background: url(“…………”).

    Have you noted the difference, look above again and you will note it.

    You have mixed between CSS syntax and HTML syntax. The syntax you wrote above only works inside CSS files (*.css). In a PHP file you use HTML tags, so you can either call an external stylesheet like the following you made:

    <link rel=”stylesheet” href=”https://smartsaveranu.com/wp-content/themes/tarnished/css/reset.css&#8221; media=”screen” />
    <link rel=”stylesheet” href=”https://smartsaveranu.com/wp-content/themes/tarnished/style.css&#8221; media=”screen” />
    <link rel=”stylesheet” href=”https://smartsaveranu.com/wp-content/themes/tarnished/css/prettyPhoto.css&#8221; media=”screen” />

    or use the HTML style tags. When you use Style tags in HTML, you don’t use the CSS syntax,that you use in CSS files.

    The whole problem lies in that you are using CSS syntax in HTML tags. As you already know,PHP only processes PHP and HTML. CSS syntax is not recognized.

    Check out xxxPAGE.php, and add the ” “, which is HTML syntax and revise any other PHP files, you dealt with HTML tags using CSS syntax.
    This make the HTML tags broken, a starting tag without no ending tag.So when you click on the menu, the page goes to the specified page, but your code is not processed, and your menu is set that on these circumstances it shows the homepage.
    I hope, I made my point clear and you understand what I mean.

    A tip of advice, consider using “Advanced Code Editors” plugins, that uses color coding, so you can identify if there are errors in your code, the default wordpress code editor makes these errors very hard to find. Consider it.

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Help! Menu Buttons Stopped Working, All buttons revert back to home page’ is closed to new replies.