• Hi

    Is it possible to change the colour of the “Section headers” in the UI? We couldn’t find this anywhere.

    Is there a page which can show an unfiltered list of all posts i.e. not just a specific category?

    Finally, we tried to extend the theme with a child theme and noticed all our settings had disappeared. I found the theme_mods_onepress option in the database and copied it to theme_mods_onepress-child but this did not work for everything. Specifically, some of the colours and styling did not copy over. Is there something else that must be done to synchronise the settings?

    Thanks
    Jamie

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

    1. Can you let me know which “section headers” ? Maybe we don’t have this setting, but you can apply custom css.

    2. You just create a page and set it is Post page and it will show all your posts.
    http://prntscr.com/cg3sya

    3. Don’t copy the setting in database. You can read more here to know how to create something in Customizer. Also add the code via child theme’s functions.php
    https://developer.wordpress.org/themes/advanced-topics/customizer-api/

    Hope it helps!

    Thread Starter jamieburchell

    (@jamieburchell)

    Hi!

    1. The section headings I refer to are h2.section-title. I could not find where to change their colour in the UI so I have overwritten the h1-h6 styles in the child theme.

    2. I’ll try that, thanks.

    3. I managed to copy the theme settings to the child theme by copying the serialized option string from theme_mods_onepress to theme_mods_onepress-child; this seems to have worked.

    I figured out that the way I was invoking the stylesheets using this code:

    <?php
    /**
    * Enqueues child theme stylesheet, loading first the parent theme stylesheet.
    */
    function themify_custom_enqueue_child_theme_styles() {
        wp_enqueue_style( 'parent-theme-css', get_template_directory_uri() . '/style.css' );
    }
    add_action( 'wp_enqueue_scripts', 'themify_custom_enqueue_child_theme_styles', 11 );

    (https://themify.me/docs/child-themes)

    This was causing the inline styles that the theme produces from the settings to be output before the stylesheet and so were overwritten.

    I then found and used the code here instead and this solved the style issues:

    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' );
    }

    (https://github.com/FameThemes/onepress-child/blob/master/functions.php)

    And this is again different to the recommendations here:

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

    (https://codex.wordpress.org/Child_Themes)

    Hi there,

    Unfortunately we don’t have the title color setting, you can apply the custom css.
    For example :
    .section-about .section-title { color : #000; }

    Also, glad when you make #3 work. Maybe that is good solution if someone want to do like you 🙂

    hi @jamieburchell, i have somehow the same issue and would be grateful if you could help me to figure out what you did exactly for copying the customizers settings (3.) css is working fine, i also would not mind to set the color again. but all the homepage content and settings are lost in the child. if you can help me to find this it would be great!

    thank you!

    Thread Starter jamieburchell

    (@jamieburchell)

    hi @heidihu!

    Forgive me, I can’t remember exactly what the issue was or how I fixed it and the site in question is no longer online. However, I think I went to the “wp_options” database table, found the option_name “theme_mods_onepress” and copied the adjacent option_value and pasted that value in the “option_value” of “theme_mods_onepress-child”.

    Although it’s possible to change the serialised text in the option_value if you know what you’re doing, it’s safer to just make any changes in the WordPress settings.

    Hope that helps

    • This reply was modified 6 years, 10 months ago by jamieburchell.
    • This reply was modified 6 years, 10 months ago by jamieburchell.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Copying theme settings to child theme’ is closed to new replies.