Forum Replies Created

Viewing 5 Topics - 1 through 5 (of 5 total)
Author Posts
April 25, 2014 at 10:55 pm in reply to: Product Edit page issue and rewrites 19417
Marita Marita

I had similar issues with the EDIT product page not working – and it was the permalink structure in my settings – i had to set it to /product

April 25, 2014 at 10:53 pm in reply to: Account login failed message 19416
Marita Marita

I found it. Its a conflict with Ithemes Security. When i deactivate the plugin it shows up.

April 25, 2014 at 2:47 am in reply to: Correct code in functions.php for style.css 19360
Marita Marita

Simon i agree that changing the functions.php to make child theme support standard can easily be done – but i find this just as easy to create a functions.php in my child theme and add this code.

All that its doing is loading the style.css from my child theme as the last style in the wp_enqueue_scripts function.

<?php

function theme_name_scripts() {
    wp_enqueue_style( 'yellow-ribon', get_stylesheet_uri() );
}
 
add_action( 'wp_enqueue_scripts', 'theme_name_scripts', 99 );

?>
April 22, 2014 at 7:16 am in reply to: Child Theme 19209
Marita Marita

No i think i figured it out. The theme is coded in a way to not allow child themes to overwrite the parent style. I changed some code in function.php in the enqueue scripts section.

Basically, $template_directory needed to be changed to $stylesheet_directory. By using template_directory, the child theme is still telling it to look for the parent stylesheet. See below:

This solution still requires you to change the function.php file, so technically its not a true child theme.

A less intrusive solution i think is just to add a customstyle.css in the header.php because when the theme is updated, all it will require you to do is add that line of code back to the header.

Thoughts?

   /**
     * Enqueue scripts and styles
     *
     * @since Dokan 1.0
     */

   function scripts() {
       ADDED THESE:
        $stylesheet_directory = get_stylesheet_directory_uri();

        wp_enqueue_style( 'style', $stylesheet_directory . '/style.css', false, null ); 
April 22, 2014 at 6:08 am in reply to: Child Theme 19205
Marita Marita

Update: all other php files overwrite sucessfully as a child theme- just the css doesnt.

Viewing 5 Topics - 1 through 5 (of 5 total)