i copied the function.php file before i tried what u suggested… it didn’t work and now the site has crashed… i replace the content with the funtion.php that i saved but it keep giving me this error…
Parse error: syntax error, unexpected ‘;’ in /home/content/11/11211711/html/wp-content/themes/gamepress/functions.php on line 144
OMG!
I think you’ve misunderstood what I needed
All I need is a COPY of the functions file – I’ll show you what bit to edit.
Just hit undo a few times, or Download the theme in your browser and locate the functions file and replace.
Actually, hang on, I’ll check the file for you…
Just hit undo a few times and save the functions file as you found it for now.
So is copying my functions.php file contents into notepad good enough? Then I have a physical file to share with you?
thanks for helping
Ok, so from a completely standard GamePress functions.php file we need to edit line 152
add_action('wp_print_styles', 'gamepress_enqueue_skin_css');
Change this to;
add_action('wp_enqueue_scripts', 'gamepress_enqueue_skin_css');
The theme author has used the incorrect hook here. This will stop the CSS being loaded into the administrator interface
– http://codex.wordpress.org/Plugin_API/Action_Reference/wp_enqueue_scripts
– http://codex.wordpress.org/Plugin_API/Action_Reference/wp_print_styles
here is my functions.php file if its needed. Im not sure if the previous post is for me or not? Anyway here it is: http://pastelink.me/dl/4f63e5#sthash.SreIXUPu.dpuf
I hope ive done it right and again thankyou Aaron for taking time out to help.
Jim
it’s not allowing me to do anything…everytime i try to navigate it gives me an error: Parse error: syntax error, unexpected ‘;’ in /home/content/11/11211711/html/wp-content/themes/gamepress/functions.php on line 144
Sorry I’ve got a little confused in there with the two of you
rkallon – replace your functions.php file with one from a fresh download of the theme.
Then you’re both in the same situation.
Then refer to my post 3 previous to this one, and edit line 152 (use a text editor such as Notepad++ – it has FTP access and line numbering. You can edit your site live from it). If you just want to use notepad, search for the line I suggested above.
That will correct the way in which the CSS is loaded in your theme, and will keep it only in the front end.
Are there any other issues?
@rkallon: As per the Forum Welcome, please post your own topic. Posting in an existing topic causes problems for the forums volunteers.
Thanks esmi,
I think both rkallon and RetroGam3r are now at the same point in resolving the same problem (or they will be shortly!)
That is;
– Fresh install of functions.php
– Edit line 152 as above.
@theme Diva… my bad, i’m just so stressed right now… really sorry.
@ Aaron, the main problem is… everytime i click a button i get the error msg. I have notepad++, that’s where i saved the function.php file. in my panic i tried getting outta the function.php page…now i can’t get back in… i’m walking dead…
@rkallon: Please post your own topic.
@rkallon – let me know in a separate topic and we’ll continue there
@retrogam3r – all sorted?
just doing a fresh install now, do i need to do the line 152 aswel?
I shall report back