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 9 years, 4 months ago by
bizwizkid.
-
This reply was modified 9 years, 4 months ago by
bizwizkid.
-
This reply was modified 9 years, 4 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