WordPress.org

Support

Support » How-To and Troubleshooting » inlcuding a function file in new theme process

inlcuding a function file in new theme process

  • hi,
    i am making a theme in which i want to include function.php. i tried include but it didn’t work. how does WP adds its functions file.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You just need to have a functions.php file in your theme folder.

    yes i have. wht makes me wonder is that it is writing down the menus in functions.php but don’t enqueque jquery, i did it same way as told in codex but it doesn’t show in source.

    WordPress enqueues jQuery by default. Why would you need to re-enqueue it?

    maybe for themes that’s available. i am creating custom theme.i have this everything ready in html n running for months bt now i m moving it to WP.

    Since jQuery is already loaded, you don’t have to enqueue it in a theme.

    I tried to use alert. not working, so i am guessing its not enqueue

    jQuery is already loaded. There mist be something wrong with your javascript. Have you tried reviewing Using_Javascript?

    here is my code

    jQuery(document).ready(function(){
        jQuery("#galleryhdr").fwShowcase({"galleryTxtColor": "#666666","padding": 0,"borderWidth": 0,"prevTxt": "Prev","nextTxt": "Next","playTxt": "Play/Pause","closeTxt": "Close","duration": 8,"max": 1024,"slideshow": true,"controls": true,"showInfo": true,"autohideControls": false,"autohideInfo": false,"align": 1,"controlsPath": "resources/controls.png","imageCss": {},"galleryCss": {},"thumbs":false});
    	});

    even when i do simple alert. the page is loaded but its blank. i checked the source. its empty 🙁

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘inlcuding a function file in new theme process’ is closed to new replies.
Skip to toolbar