WordPress.org

Ready to get started?Download WordPress

Forums

Blaskan
Syntax error child theme and changing colours (12 posts)

  1. Atlanto
    Member
    Posted 2 years ago #

    Hey guys,

    Whenever I try to install a child theme on my website and activate that theme in the wordpress I get a syntax error that shows up everywhere until i delete the whole child theme manually from my directory.

    This is the exact error that shows up:
    Parse error: syntax error, unexpected $end in /home/asuragat/domains/asuragate.com/public_html/wp-content/themes/blaskan child/functions.php on line 1

    Another question, where in the theme's file can I adjust the colours of the body of the layout? The white that surrounds the header for example and where can I replace the buttons with my own design?

    http://www.asuragate.com

    Thanks for the help!

    http://wordpress.org/extend/themes/blaskan/

  2. Fire Truck
    Member
    Posted 2 years ago #

    1. Go to pastebin.com and paste there the content of the functions.php of your child theme, then paste the link to it here.
    2. In the file style.css of your child theme.

  3. Atlanto
    Member
    Posted 2 years ago #

    Hey thanks for the quick reply! The only content of my functions.php is
    <?php

    http://pastebin.com/FYCWs3Af

  4. Fire Truck
    Member
    Posted 2 years ago #

    If this file is essentially empty, just delete it. It isn't required for the child theme.

  5. Atlanto
    Member
    Posted 2 years ago #

    Thanks, I deleted the file and the syntax error does not come up anymore. But now, when i activate my child theme the CSS is not working i guess because I only see content without the styling..
    http://www.asuragate.com

    This is what is in my child themes style.css

    /*
    Theme Name: Blaskan Child
    Theme URI: http://blaskan.net
    Description: Child theme for the Blaskan theme
    Author: Thomas Beukers
    Author URI: http://www.helloper.com/
    Template: blaskan
    Version: 1.0
    */

    @import url("../blaskan/style.css");

  6. Fire Truck
    Member
    Posted 2 years ago #

    When I try to access the file /wp-content/themes/blaskanchild/style.css it gives me the error 404 Not Found. That's why there's no styling.

  7. Atlanto
    Member
    Posted 2 years ago #

    ah stupid me, I named my directory blaskan child instead of blaskanchild :P. I updated it, but it still does not show up as it should. The background and the header are missing for some strange reason..

    Should I implent those again in the child's style.css?

  8. Fire Truck
    Member
    Posted 2 years ago #

    Well, the <header> section is there. And what background are you talking about? Try posting a picture how the site should look like. Normally a child theme which has only the @import in its css looks exactly like its parent theme.

  9. Atlanto
    Member
    Posted 2 years ago #

    http://i44.tinypic.com/14vjlm1.jpg

    here is what the websites looks like with the parent theme activated.

    The css is of the style.css looks a bit weird to me, I'm also trying to find the buttons to replace them and adjust the color of the body, because I don't like the white stuff around the header, but I can't seem to find it anywhere

    here is the parent style.css

    http://pastebin.com/JQp0BfMb

    again, thanks for your help and patience! I appreciate it! :)

  10. Fire Truck
    Member
    Posted 2 years ago #

    In this theme the background & header are not set in the css but in the theme options. Go to Dashboard -> Appearance -> Background and Dashboard -> Appearance -> Header and set them there.

  11. Atlanto
    Member
    Posted 2 years ago #

    Thanks, I adjusted the style.css file of the child, in that way I have more controllability than via theme options! one more question, how can I adjust / add DIV's without the php file?

    ty :)

  12. Fire Truck
    Member
    Posted 2 years ago #

    adjust / add DIV's without the php file

    I don't think it's possible. Unless you want create them with javascript.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags