Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • in reply to: Font Awesome #4716
    oskar
    Member
    Post count: 6
    in reply to: Child Theme #3355
    oskar
    Member
    Post count: 6

    Thanks, this worked!
    wp_register_style(‘main-css’, get_stylesheet_directory_uri() . ‘/style.css’, array(), ‘1.0’, ‘screen’);
    It looks like you’d also need to rework the order the stylesheets are loaded in (parent style.css, custom-styles.css, child style.css) so I’m sticking with just using the custom css box on the pinpoint general options page.

    in reply to: Child Theme #3116
    oskar
    Member
    Post count: 6

    Hi, thanks again for the quick reply and I appreciate your support.

    I already have a child theme set up.  The original problem was that the child’s style.css file isn’t loaded or is ignored.  Changes to the child’s header.php do work so it’s just the stylesheet that is the problem.

    As a workaround I will continue to put custom styles in the custom css box on the pinpoint general options page.

    in reply to: Child Theme #2738
    oskar
    Member
    Post count: 6

    Hi, thanks again for the quick response.

    I got around the path problem but now error is that it cannot re-declare classes.  Child theme sets something via child functions.php then parent function.php tries to re-write it and fails …

    “Cannot redeclare sf_enqueue_styles() (previously declared in child …. in parent …

    Can you confirm the original instructions:

    1. From the original theme, copy these files&folders to your child theme:

    – functions.php
    – /includes/options/
    – /includes/sf-options.php

    in reply to: Child Theme #2281
    oskar
    Member
    Post count: 6

    Update:

    Changing the code to

    require_once($_SERVER[‘DOCUMENT_ROOT’] . ‘/wordpress/wp-content/themes/pinpoint-child/includes/sf-options.php’);

    gave this error:

    Fatal error: Cannot redeclare sf_enqueue_styles() (previously declared in /home/content/59/9840059/html/wordpress/wp-content/themes/pinpoint-child/functions.php:114) in /home/content/59/9840059/html/wordpress/wp-content/themes/pinpoint/functions.php on line 128

    in reply to: Child Theme #2280
    oskar
    Member
    Post count: 6

    Thank you for the quick response.   Is there another way to include the file?  The code
    require_once(get_stylesheet_directory_uri().’/includes/sf-options.php’);
    resulted in an error and I can’t change allow_url_include on the shared server.  Here’s the error:

    Warning: require_once() [function.require-once]: http:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/content/59/9840059/html/wordpress/wp-content/themes/pinpoint-child/functions.php on line 64

    Warning: require_once(http://mysite.org/wordpress/wp-content/themes/pinpoint-child/includes/sf-options.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/content/59/9840059/html/wordpress/wp-content/themes/pinpoint-child/functions.php on line 64

    Fatal error: require_once() [function.require]: Failed opening required ‘http://mysiteorg/wordpress/wp-content/themes/pinpoint-child/includes/sf-options.php’ (include_path=’.:/usr/local/php5_3/lib/php’) in /home/content/59/9840059/html/wordpress/wp-content/themes/pinpoint-child/functions.php on line 64

Viewing 6 posts - 1 through 6 (of 6 total)