Chad Chadbourne
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageGlad it’s working ??
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageI hope the last bit I sent didn’t sound smart-ass.
Not at all ??
I followed the steps of your latest posting and after adding the code you gave in the link to the function.php file
That sounds like your problem.
The code from the link will be used to create a copy of
portfolio-page.php
in the child theme.The
functions.php
file in the child theme should have only this code:<?php add_action( 'wp_enqueue_scripts', 'blask_parent_theme_enqueue_styles' ); function blask_parent_theme_enqueue_styles() { wp_enqueue_style( 'blask-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'blask-child-style', get_stylesheet_directory_uri() . '/style.css', array( 'blask-style' ) ); }
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pagemine is without #? numbers
I’m not sure what you mean here but let’s attack this a little differently to make sure we’re on the same page.
Your child theme should have the following:
style.css
/* Theme Name: Blask Child Theme URI: Description: Blask child theme. Author: Me Author URI: Template: blask Version: 0.1.0 */
functions.php
<?php add_action( 'wp_enqueue_scripts', 'blask_parent_theme_enqueue_styles' ); function blask_parent_theme_enqueue_styles() { wp_enqueue_style( 'blask-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'blask-child-style', get_stylesheet_directory_uri() . '/style.css', array( 'blask-style' ) ); }
portfolio-page.php
use the code at this link (this is a full dump of my own child theme’sportfolio-page.php
file).Set up a child theme with just that code, and just those three files, and you’ll be running exactly what I am here ??
Also, if you need to post code, put a backtick before and after the code block (usually the top left of your keyboard, on the same key as the ~ symbol). That will preserve the formatting of your code ??
Forum: Themes and Templates
In reply to: [Pictorico] How to Change post title tag from H1 to H2 ?Hi @ronroy2!
Unfortunately this isn’t a theme I have experience with so I’m not able to provide the code examples you’d need. The developer or another user of the theme who has worked with the files will be better able to assist.
You can try to use the above code snippets as a starting point – you’d most likely need to locate where
the_title()
is being called in yoursingle.php
file.You’d then want to modify the HTML in a copy of that file using a child theme.
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageI decided to also start from scratch, to make sure we were working with identical canvases.
This time (totally new Blask install, brand new child theme) I actually was able to reproduce what you and @floriangoguillon originally reported, with the menu missing.
Not sure why it didn’t happen on my test site when I first proposed that solution, but I see what was happening now.
So, with that in mind, I’ve taken a new approach. Let’s work directly in the Portfolio Page template (this assumes that the Design-only home page is the only place on the site that you intend to use this template).
First – remove the code we’ve been using. Your child theme’s
functions.php
file should have only the initial enqueueing function.Next, go into the parent Blask theme, and copy
portolio-page.php
into your child theme’s folder. Open up that copy.This template runs a special query for just portfolio items. We’re going to modify that query.
Currently, the arguments for the query look like this:
$args = array( 'post_type' => 'jetpack-portfolio', 'posts_per_page' => $posts_per_page, 'paged' => $paged, );
We’re going to add the project type we want into them, so they look like this instead:
$args = array( 'post_type' => 'jetpack-portfolio', 'posts_per_page' => $posts_per_page, 'paged' => $paged, 'tax_query' => array( array( 'taxonomy' => 'jetpack-portfolio-type', 'field' => 'slug', 'terms' => 'design', ), ) );
Now, because the query modification is happening directly in the template, there’s no chance of it interacting with the menu ??
Let me know how that goes!
Forum: Themes and Templates
In reply to: [Pictorico] How to Change post title tag from H1 to H2 ?Hi @ronroy!
Each theme is a little different, so the file/element structure won’t be the same as the Pictorico theme, which this particular forum is geared towards ??
I was going to recommend posting in the Just Write theme’s support forum (thanks for the link to the theme page!) but it looks like you already have a thread open there ??
I’d suggest monitoring that thread, as the forum for the specific theme will be the best place to work from.
Forum: Themes and Templates
In reply to: [Twenty Seventeen] Changing background color Twenty SeventeenHi @yaneypaz75
We can take the theme’s original style for the dark background color and change it to black, like so:
body.colors-dark, .colors-dark .site-content-contain, .colors-dark .navigation-top, .colors-dark .main-navigation ul { background: #000; }
Add that into your customizer’s Additional CSS section and you should be in good shape.
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageLooks like you’ve included @floriangoguillon’s code to fix his missing menu. Looking back through this thread, I’m still not sure why that menu had trouble to begin with.
I’ve just created a brand new site, installed Blask, and tested my original snippet again (using ‘design’ as the slug to hopefully match your setup exactly).
The homepage was properly filtered, and the menu was unaffected.
I then clicked into Appearance > Customize > Menus.
I created a new menu, and clicked Add Items.
Under Pages, I added a link to the home page, and changed the label to say Design, to match your setup.
I then used the Project Types panel to add my Illustrations project type into the menu. Saved everything, closed the Customizer, and tested – everything works.
My advice would be to remove that second snippet of code, and use just the one from my original answer.
If that doesn’t work, you’ll probably want to get as fresh a start as you can:
– Uninstall Blask
– Delete your child theme
– Delete any custom menus you’ve saved
– Reinstall Blask (fresh copy from the .org repo)
– Recreate your child theme with just the first snippet (linked above)
– Test the site – is your menu still there?
– Edit your portfolio projects. Make sure there are some assigned to the Illustrations project type
– Use My Site > Customize > Menus to create a new menu that includes a link to the Home page and a link to the Illustrations project type.If you don’t succeed somewhere along the way through that process, it must be something else in your install – a conflicting plugin perhaps.
Start by removing that second snippet from your child theme, and let me know what happens!
Forum: Themes and Templates
In reply to: [Cubic] Setting up Infinite Scroll with Cubic ThemeHey @tayron
Now that Jetpack is installed, have you made sure the Infinite Scroll Module is active? It’s in the Theme enhancements section of Jetpack > Settings.
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageDepending on how the child theme is set up, it shouldn’t impact the menu listing. It’s strange that you’re setting a custom menu to display but nothing is coming up.
It might be worth testing your menu on the parent theme, see if it works. Then try it again on the child theme.
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageNo need to apologize!
It sounds from here like you have set up a menu with the links you want, but haven’t actually enabled it.
In addition to menus, there are also menu locations. You can create a custom menu, but you need to actually assign it to the menu location for it to appear.
Make a not of the name of the menu that has the right links, and make sure it’s set to the primary menu location.
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pagehey @timyoungorg
I can’t see into your dashboard, no – but you don’t need to create a new page. All you are changing is the menu structure.
Under Appearance > Customize > Menus, click Add Items. Now you’ll get a list of all of the different kinds of things you can put in your menu. WordPress automatically generates archives of most content types. Look in Project Types for Illustrations – you can add a link to that archive into your menu, so all of the projects belonging to that type are listed.
Forum: Themes and Templates
In reply to: [Twenty Seventeen] Changing background color Twenty SeventeenHi @teresacuervo!
The menu color would be a different code:
.navigation-top { background-color: #fff; }
Using whatever color you need (color codes can be grabbed at https://htmlcolorcodes.com/)
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageThe Illustration link in your menu points to https://timyoung.ca/wordpress/illustration
That is a page using the theme’s portfolio template, not the specific illustration tag.
Check under Appearance > Customize > Menus, and make sure you’ve added the project tag (or project type, depending on how you’ve organized them) to your menu, instead of a page.
Forum: Themes and Templates
In reply to: [Boardwalk] How to Change Post Width?Hi @dannydanny!
It looks like you’ve switched themes since you posted this, so I didn’t run any tests. Let us know if you end up on Boardwalk and try this again ??