Support » Theme: OnePress » Child Theme issues

  • I know this is probably your most common complaint, but I could use some help.

    I have a Child Theme set up, and it’s mostly working fine. I also have onepress-plus installed. I’m trying to add social share buttons to the blockquote. When I inspect a blockquote, the share buttons don’t just not load, but when I inspect the blockquote in Chrome it shows as the onepress-plus/style.css as the active one. I updated the CSS in that file just to see if there was a conflict, and it doesn’t even show as changed when I inspect the element now. The site is http://hylandridge.com and the sample with a blockquote is http://hylandridge.com/index.php/2016/10/23/this-is-what-white-privilege-and-systemic-racism-look-like/

    Any help appreciated.

    J

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @tnofuentes,

    Sorry but I don’t see any blockquote from your link : https://cl.ly/3H3o0R3a3p1Z

    Let me know!

    That italicized section is a blockquote. It looks like it’s passing the changes to the onepress-plus style.css file, but I don’t understand why the inspector shows the onepress-plus style.css as the active one. Here is the functions.php:

    <?php
    /**
    * OnePress Child Theme Functions
    *
    */

    /**
    * Enqueue child theme style
    */
    add_action( ‘wp_enqueue_scripts’, ‘onepress_child_enqueue_styles’, 15 );
    function onepress_child_enqueue_styles() {
    wp_enqueue_style( ‘onepress-child-style’, get_stylesheet_directory_uri() . ‘/style.css’ );
    }
    /**
    * Hook to add custom section after about section
    *
    * @see wp-content/themes/onepress/template-frontpage.php
    */

    /*
    function add_my_custom_section(){
    ?>
    <section id=”my_section” class=”my_section section-padding onepage-section”>
    <div class=”container”>
    <div class=”section-title-area”>
    <h5 class=”section-subtitle”> My section subtitle</h5>
    <h2 class=”section-title”> My section title</h2>
    </div>
    <div class=”row”>
    <!– Your section content here, you can use bootstrap 4 elements 🙂 –>
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p>

    </div>
    </div>
    </section>
    <?php
    }
    add_action( ‘onepress_after_section_about’, ‘add_my_custom_section’ );
    */

    Am I missing something?

    J

    Hi @tnofuentes,

    Normally, whenever you active the Plus version, it will replace main theme stylesheet. So that is why you see the onepress-plus style.css. However, if you want to add any css, I recommend you should add it in Customize => Additional CSS.

    Congthien, this is rather odd to read. If I buy the theme onepress-plus (which I have done) and install the plugin, I should be able to maintain my ability to use one stylesheet in my child-theme onepress-child. Your suggestion to just add styles in the Customize => Additional CSS is risky (potential loss when testing other themes) and redundant (already have a onepress-child stylesheet.

    What would be great is if you could tell us how to maintain one styles.css sheet we already have in our onepress-child directory that overrides any styles from the plus plugin. I see in my source file that this appears to be the case but, I cannot override things in the child css even if using !important.

    That being said, does the plugin styles.css replace the onepress (free version) styles.css? If so, can’t we just replace the free one with the plus version?

    Thanks, I’m a big fan of onepress!!

    • This reply was modified 2 years, 9 months ago by  bizwizkid.
    • This reply was modified 2 years, 9 months ago by  bizwizkid.
    • This reply was modified 2 years, 9 months ago by  bizwizkid.

    Hi bizwizkid

    Did you find any solution? I have the same problem trying to style some onepress-plus items.

    Best regards from Berlin
    Tibor

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Child Theme issues’ is closed to new replies.