x.charisma
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Ambrosia] menu links added to the page where it shouldn't beDecided to just hack it by emptying new_category_menu_cb and place all menus in the sidebar.php. It’ll work till it breaks lol.
Forum: Themes and Templates
In reply to: [Ambrosia] child stylesheet not overriding parentYes…I just realised image size is probably why its loading so incredibly slow at the moment. Thank you again for all the help you’ve given me!such a lifesaver!!
Forum: Themes and Templates
In reply to: [Ambrosia] child stylesheet not overriding parentTurns out ambrosia theme works fine as a parent theme (thus far) :’)
Forum: Themes and Templates
In reply to: [Ambrosia] child stylesheet not overriding parentThank you,
it’s still not loading my images properly. When viewing resources, there’s 2 logo.png from different paths (probably my fault somewhere down the line), and its looking at the right place for my background.png however it’s not loading the image anyway, would you have any idea as to why?
Edit: turns out its a capitalisation problem again. it is now loading the image properly.
Thank you so much for your help! Was stuck on this for way too long!
Forum: Themes and Templates
In reply to: [Ambrosia] child stylesheet not overriding parentfolder name of child theme is confettitheme
thank you, I added in the } I think it may be working now as the background has disappeared, however its not retrieving the image that should be in the background now. My images are inside /confettitheme/images/
Forum: Themes and Templates
In reply to: [Ambrosia] child stylesheet not overriding parentI know the child theme is working because I’ve changed the custom 2 menus (provided by ambrosia) into 5 menus. It’s just the stylesheet thats completely ineffective
Forum: Themes and Templates
In reply to: [Ambrosia] child stylesheet not overriding parentYes I did
and within the child theme style.css, i imported the parent style.css and looking at https://www.venutip.com/content/right-way-override-theme-functions
I tried the following:
// Removes thematic_blogtitle from the thematic_header phase function remove_ambrosia_actions() { remove_action('get_header','ambrosia_load_styles',3); } // Call 'remove_thematic_actions' during WP initialization add_action('init','remove_ambrosia_actions'); // Add our custom function to the 'thematic_header' phase add_action('get_header','new_load_styles', 3); // Load CSS function new_load_styles() { if (!is_admin()) { wp_enqueue_style('fontapi', 'https://fonts.googleapis.com/css?family=Ubuntu:regular,italic,bold,bolditalic&subset=greek,latin'); wp_enqueue_style('main', get_stylesheet_directory_uri() . '/style.css'); } }
which didn’t crash the styling, however it still doesn’t make the child style override the parent
Forum: Fixing WordPress
In reply to: Warning: call_user_func_array() function 'ambrosia_load_templates'i had changed
wp_enqueue_style('main', get_template_directory_uri() . '/style.css');
to
wp_enqueue_style('main', get_style_directory_uri() . '/style.css');
in parent functions.php
and
//Custom menu support /*if ( function_exists( 'register_nav_menus' ) ) { register_nav_menus( array( 'main' => __('Sidebar main menu'), 'secondary' => __('Sidebar secondary menu'), ) ); } // Ambrosia Custom Menus Callback (HTML5 markup) // Categories menu function ambrosia_category_menu_cb() { print '<nav class="main"><ul>'; wp_list_categories('orderby=name&title_li='); print '</ul></nav>'; } // Pages menu function ambrosia_pages_menu_cb() { print '<nav class="secondary">'; wp_page_menu('sort_column=menu_order&*/ menu_class=pages'); print '</nav>'; }
from parent functions.php to
//Custom menu support if ( function_exists( 'register_nav_menus' ) ) { register_nav_menus( array( 'first' => __('Sidebar first menu'), 'second' => __('Sidebar second menu'), 'third' => __('Sidebar third menu'), 'fourth' => __('Sidebar fourth menu'), 'fifth' => __('Sidebar fifth menu'), ) ); } function ambrosia_category_menu_cb() { print '<nav class="first"><ul>'; wp_list_categories('orderby=name&title_li='); print '</ul></nav>'; print '<nav class="second"><ul>'; wp_list_categories('orderby=name&title_li='); print '</ul></nav>'; print '<nav class="third"><ul>'; wp_list_categories('orderby=name&title_li='); print '</ul></nav>'; print '<nav class="fourth"><ul>'; wp_list_categories('orderby=name&title_li='); print '</ul></nav>'; print '<nav class="fifth"><ul>'; wp_list_categories('orderby=name&title_li='); print '</ul></nav>'; }
in the new child functions.php and that’s when it gave the warning
Forum: Fixing WordPress
In reply to: Warning: call_user_func_array() function 'ambrosia_load_templates'I imported from the parents CSS and added my own (but these that I added are just sections of the parent css but changed to have different values)
Forum: Fixing WordPress
In reply to: Warning: call_user_func_array() function 'ambrosia_load_templates'I’m running the child theme, but my style.css won’t override the parent theme’s style…would you happen to know a good way?
Forum: Fixing WordPress
In reply to: Warning: call_user_func_array() function 'ambrosia_load_templates'For now it works as I’ve changed the call to stylesheet in parent functions.php back to the original get_template_uri as opposed to get_style_uri. Ofcourse it follows that my stylesheet is not applying anymore as that was the only solution i had found for overriding parent stylesheet with child stylesheet
Forum: Fixing WordPress
In reply to: Warning: call_user_func_array() function 'ambrosia_load_templates'