简体   繁体   中英

What am I doing wrong in custom wordpress theme

Ok I have my own html/css theme and I want to have it as a wordpress site but I have become stuck.

I have installed Wordpress on my GoDaddy account and put all the proper php files in the correct folder according to the tutorial video http://example.com/wp-content/themes/example/ and I have made a footer.php/header.php and I have put

<?php wp_enqueue_script("jquery"); ?>
<?php wp_head(); ?>

in the header and

  <?php wp_footer(); ?>

in the footer,

When I load up the site all it is showing is a very unstyled home page with just the header and footer, I then thought I probably have to call the header and footer on the index page somehow so I have

<?php get_header(); ?>

and

<?php get_footer(); ?>

I am uncertain where to put this so I put it on the index page at the top and at the bottom, but yeah it wont work.

any help would be nice cheers.

As much I know about WP custom theme development, it's better to call wp_enque_script function inside your functions.php file and the add_action to init that script function.

Hope it works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM