Jason Tyde
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Sketch] The Portfolio Page Template pagination may be backwardsYou bet. A picture says a 1000 words and all. ??
I was able to modify the theme-specific background color successfully.
Unfortunately removing and reinstalling Sketch as the parent theme did not resolve the issue with the Social menu.
Yet, the information you provided about the theme-specific colors led me to make another couple theme-specify changes: 1. I reassigned the logo image I was using and 2. I reassigned the existing Header & Social menus to the appropriate theme locations in the Customizer and that resolved the rendering issues I’ve noticed so far.
I’ll now do a deeper review of the child to see if I can find any more rendering discrepancies. If I do not find any I will turn my attention back to the pagination issue that started the thread. If I do find any I will share those details and ask for more help.
You’ve been great and I appreciate your help Chad!
- This reply was modified 7 years, 11 months ago by Jason Tyde.
Forum: Themes and Templates
In reply to: [Sketch] The Portfolio Page Template pagination may be backwardsUnfortunately Kathryn’s enqueue function does not load everything up for me, although it loads much of the styling. These two full-page images show the differences.
The Sketch parent:
My Sketch child:
While much of the styling is reproduced in the child, a quick review shows that the background color and the social menu are not being rendered accurately. So there is some style that is not coming through and I do not know how to pull it into the child. Please help.
My child’s function.php:
<?php function sketch_child_scripts() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } add_action( 'wp_enqueue_scripts', 'sketch_child_scripts' );
Two questions: 1) How do I identify which .css (and maybe .js) files are missing? 2) How do I successfully enqueue them in the child?
Thanks to both of you for all your help with this child-creation issue.
Forum: Themes and Templates
In reply to: [Sketch] The Portfolio Page Template pagination may be backwardsHi Kathryn,
Thanks for your help.
I tried the enqueuing function your propose and I’m seeing the same result.
I think all these different versions of the enqueuing function are missing something with respect to dependencies.
How can I uncover the dependencies and ensure they all get enqueued?
Forum: Themes and Templates
In reply to: [Sketch] The Portfolio Page Template pagination may be backwardsUnfortunately I’m hung up on creating the child theme and have not been able to try out the re-coded pagination. I’m using the following style.css in my new ‘sketch-child’ directory:
/* Theme Name: Sketch Child Description: A clean, responsive portfolio theme with options for a custom site logo, a featured content slider, and lots of room to share your work. This child theme changes the portfolio page pagination to move forward rather than backward through the projects. Version: 1.0.0 Author: Jason Tyde Author URI: https://www.jasontyde.com Template: sketch License: GNU General Public License v2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Text Domain: sketch-child Tags: featured-images, full-width-template, one-column, photography, portfolio, right-sidebar, rtl-language-support, theme-options, translation-ready, two-columns */
And have copied & edited the following code into the child’s functions.php:
<?php function my_theme_enqueue_styles() { $parent_style = 'parent-style'; // This is 'sketch-style' for the Sketch theme. wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') ); } add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); ?>
When I activate the child theme and reload a page the parent’s style is not being inherited properly. I think there may be an error in the $parent_style variable, but my experiments have not solved it. The referenced page describing how to build a child theme has not helped me solve this issue either. Nor has reading the wp_enqueue_style() function description gotten me there.
There may be some style dependencies I’m not handling properly, yet I don’t know how to pull them all in just yet.
Can you please help me get the child theme working just like the parent?
Thanks for your help.
Forum: Themes and Templates
In reply to: [Sketch] The Portfolio Page Template pagination may be backwardsVery helpful Chad. I’ve made child themes before and have some experience with WordPress’ code and web development in general. I’ll give it a go and confirm here if it worked for me or not.
Forum: Themes and Templates
In reply to: [Sketch] The Portfolio Page Template pagination may be backwardsHi Shireling,
Thanks for helping me out here.
Yes, I would like this pagination adjustment to only apply to the portfolio and not the blog as I will have both content sources.
More code is fine by me if I can get the behavior I seek. ??
Cheers, Jason
That did the trick Ryan. Thanks!
Forum: Fixing WordPress
In reply to: Development copy not serving contentIt was a permissions issue and is now figured out.