Announcement

Collapse
No announcement yet.

Index page is unable to load in WordPress

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Index page is unable to load in WordPress

    Hello,

    My WordPress index page is not loading. It seems the page on hold.

    How to fix it?

  • #2
    Can you please describe your code here? So we can provide the appropriate solution.

    Comment


    • #3
      I have added the following code in functions.php and my index page doesn't show up. But if I remove this code the index page is working perfectly.
      Code:
      <?php
      
      function anndoe_script_enqueue() {
          wp_enqueue_style ('customstyle', get_template_directory_uri() . '/css/anndoe.css','1.0.0','all');
      }
      
      add_action ( 'wp_enqueue_scripts', 'anndoe_script_enqueue')

      Comment


      • #4
        You're forgetting to add a semicolon at the end of add_action line.

        Like:
        add_action ( 'wp_enqueue_scripts', 'anndoe_script_enqueue');
        Hope it works.

        Comment


        • #5
          Thanks Nimbus. It works perfectly.
          I appreciate your help.
          Thanks again.

          Comment

          Working...
          X