Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Closed Thread
 
Thread Tools Display Modes
Share |
  #1  
Old 10-29-2014, 09:06 PM
Birdie Birdie is online now
v7n Mentor
 
Join Date: 03-29-04
Posts: 1,801
iTrader: 0 / 0%
Any idea why I am getting this error?

This is my first attempt at creating a child theme in wordpress. I at a loss to work out this problem
The error I get is:
Quote:
syntax error, unexpected T_STRING in /home/dyslexia/public_html/wp-content/themes/dyslexia/functions.php on line 14
Here is the file:

<?php
/**
*The functions file for the home page
*/

function dyslexia_scripts() {
if ( is_front_page() ) {
wp_enqueue_style( 'dyslexia-styles', get_stylesheet_directory_uri() . '/dyslexia-style.css);

}

}

add_action('wp_enqueue_scripts' , 'dyslexia_scripts');
 

Advertisement

Advertisement

  #2  
Old 10-29-2014, 09:58 PM
Birdie Birdie is online now
v7n Mentor
 
Join Date: 03-29-04
Posts: 1,801
iTrader: 0 / 0%
turns out I was missing a ' here:
'/dyslexia-style.css);

should have been:
'/dyslexia-style.css');
 
  #3  
Old 11-24-2014, 07:48 AM
dandeedo dandeedo is offline
Junior Member
 
Join Date: 07-20-14
Location: Adelaide
Posts: 37
iTrader: 0 / 0%
When I first installed a child theme under the main theme I also faced this kind of situation! You reminded me those days!!!

syntax error, unexpected T_STRING in /home/dyslexia/public_html/wp-content/themes/dyslexia/functions.php on line 14

This actually tells where the problem is. (on line 14)

Glad that you fixed the issue.
 
Go Back   Webmaster Forum > Web Development > Coding Forum

Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flat file forum software - bad idea or good idea? shovenose Forum Management 6 03-28-2013 08:35 AM
Outlook Error: Messaging interface has received an unknown error Dani_938 Tech Talk 2 04-28-2011 03:12 AM
Any idea what this Google error message is?? ClassicReplacements Google Forum 10 01-27-2011 04:59 AM
Idea protection? valid concern or silly idea I like pie Internet Legal Issues 17 05-20-2006 05:20 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 04:34 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC