• I successfully made a child theme. I notice that in the wordpress dashboard if I go to editor all I see is style.css so say I need to edit something in content.php for example how would I edit that?

    I don’t get it???

    Thanks, Joe

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter zep101

    (@zep101)

    Still not working I tried without the bracket and then again with ?>

    Still get the “INTERNAL SERVER ERROR” it strange too because if I hit the back button to go back to editor and take the code out that crashed it and save it still says “INTERNAL SERVER ERROR” the only way I fix it is to use filezilla and strip it out and save???

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    It’s not doing anything strange at the moment, you have a syntax error in your code caused by an unnecessary extra closing bracket (}) – And if you take away all of your code in the functions.php file then it will also crash because PHP files need to at least have the code <?php ?>.

    Do you have access to your site’s error logs? You will be more informed than just a 500 error.

    Thread Starter zep101

    (@zep101)

    Yes I ran the code through https://phpcodechecker.com/ and saw the extra bracket and removed it before trying it again.

    Where would my site error logs be? at my host?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Yes, your hosting providers can guide you to where it is.

    Thread Starter zep101

    (@zep101)

    My host iPage directed me to the error log but it says: Your CGI error log is currently empty.

    I’ll have to mess with this more later I have to go somewhere now, thanks for your help!

    Thread Starter zep101

    (@zep101)

    Hi Andrew, I fixed the code and got it working, it was the second to last curly bracket that needed to be removed.

    I got it working (not erroring out) but it was funky. The purpose of it was to turn my posts into excerpts and it created a “read more” button but when clicking on it it would just reload the excerpt. Plus it would end the excerpt in the middle of a word.

    So I deleted the code. I am surprised that 2014 theme does not come already with the option to do excerpts. I will keep looking for a solution. I know I can get a plugin that kinda does what I want but I would rather code it. Let me know if you have any recommendations and thanks for you help, you taught me some things.

    Thread Starter zep101

    (@zep101)

    I need some more clarification about the functions.php file in my child. I was told to use the following code:

    <?php
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    
    }

    Whenever I add anything below this I get an error. For example I am trying to add a slider and it tells me to add this code to my functions file:

    `<?php echo do_shortcode(‘[carousel-horizontal-posts-content-slider]’); ?>

    When I do I get an error. I know very little about php but isn’t the functions file supposed to have a closing tag like ?>

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘I made a child OK but what if I need to edit something besides style,css?’ is closed to new replies.