Larry Guerrera
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Twenty] Need Social Media icon help<?php
add_action( ‘wp_enqueue_scripts’, ‘enqueue_child_theme_styles’, PHP_INT_MAX);function enqueue_child_theme_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
}// Handle SVG icons.
require get_stylesheet_directory() . ‘/classes/class-twentytwenty-svg-icons.php’;?>
This part “/classes/class-twentytwenty-svg-icons.php” is in the classes subdirectory for the child theme and contains the changes I made for the social media icons. Works flawlessly.
Forum: Themes and Templates
In reply to: [Twenty Twenty] Need Social Media icon helpI used get_stylesheet_directory in the child theme’s functions.php and that worked. If you are aiming to change the social media icons, WP 5.4.x has it natively built in now with the social media block.
Forum: Themes and Templates
In reply to: [Twenty Twenty] Need Social Media icon helpThat did the trick! All is well in my WP playground. ??
THANKS!
Forum: Themes and Templates
In reply to: [Twenty Twenty] Need Social Media icon helpNeed a little bit more help. I was able to tweak the class-twentytwenty-svg-icons.php file to include pinterest.com and pinterest.ca and it works fine within the parent twenty twenty theme. So I decided to redo this with a child theme by matching exactly the folder and name conventions and calling it twentytwenty-child. I have style.css and functions.php files as required. I also have a classes subfolder with the modified class-twentytwenty-svg-icons.php file within it. After activating the child theme, it acts as if I didn’t make any changes, meaning does not recognize the changes made to add pinterest.ca. I must be missing something, but don’t know what. Is class-twentytwenty-svg-icons.php an overridable file within the child theme?
Forum: Themes and Templates
In reply to: [Twenty Twenty] Need Social Media icon helpExcellent! Thanks for your help.
Forum: Themes and Templates
In reply to: [Twenty Twenty] Need Social Media icon helpThat does not always work, based on what I’ve seen between the ,com and .ca versions. Is there a CSS override or something else to tweak the theme to point to a .ca site?
Forum: Fixing WordPress
In reply to: Need Social Media icon helpThanks! Posted there and keeping fingers crossed.