Questions tagged [roots-sage]

Wordpress starter theme using HTML5 boilerplate

Sage is an open source Starter Theme for WordPress. Authored by https://roots.io. It was designed specifically to require programmers to follow best practices and respect standards while utilizing, and learning how to use, modern tools that result in optimally secure, stable and fast WordPress Themes.

101 questions
0
votes
0 answers

Issue on yarn build with Sage theme when curly braces is present on CSS Classes

We have a problem when we do yarn build on our project. Upon investigating it, we found that the mixins that curly braces create an error. Below is the mixin that we have: @mixin headings($from: 1, $to: 6) { @for $i from $from through $to { …
0
votes
0 answers

Woocommerce subcategories not showing with Sage 10 starter theme

I am using Woocommerce (with generoi/sage-woocommerce solution) on my Sage 10 starter theme and noticed that the subcategories are showing in my local dev environment but not on my staging environment. I have done everything according to the…
Stef L
  • 65
  • 6
0
votes
0 answers

bedrock-wordpress-sage-docker installation problem

I'm a newbie on wordpress development. I'm trying to install a project with bedrock/wordpress/sage to customize a website. I have some difficulties to make that work. Could you please help me? Thanks. Here is my .env file # DB_NAME='database_name' #…
P. Francis
  • 63
  • 8
0
votes
0 answers

Getting error with php 7.4 with illuminate devDependency

I'm currently working on a project based on Sage 9 using php 7.4. When I run npm, it builds fine and runs perfectly except on the site it gives me Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined…
Justina
  • 1
  • 1
0
votes
1 answer

How to add fallbacks to partial included with Sage 10's @include?

Let's say I have created a button component I want to include into my project with Sage 10's @include function, how do I add fallbacks to the variables, in case I or another user forget to add a value? My button*:
0
votes
2 answers

Trying to add a custom post type page template from plugin into Sage 10 theme

As the title says, I am creating a Sage 10 theme (we are NOT using bedrock). This website requires a custom post type of "speaker" which will also come with a single-speaker.php page to display the information. All of this functionality was written…
0
votes
1 answer

Override plugin file in sage wordpress

I am trying to override plugin file located in path/filename.html.php by sage theme , I have moved the file under themedirectory/path/filename.html.php but that did not show anything The sage version used is 10 DO anyone has an idea about…
0
votes
0 answers

Problem with parsing eslint for async function

I have problem with my ESLint parser. I use Sage project from Roots.io I've been searching the internet all day. I use Webpack and my terminal print: Module build failed: 19 : redirect_uri: redirectUri, 20 : }); 21 : 22 : 23 : async function…
handzel
  • 91
  • 1
  • 10
0
votes
1 answer

Tailwind v3 classes not compiling in Sage 9 (Wordpress) after upgrading from Tailwind v2

I have updated Tailwind V2 to Tailwind V3 in my Sage 9 project by following Tailwind's upgrade guide. When I add a class to my blade file, the new engine doesn't generate the required classes in the css. The only way I seem to get it to generate the…
Rick
  • 57
  • 1
  • 10
0
votes
0 answers

Wordpress Previous/Next Links Within Single Post of Custom Post Type Category

I developed a WP theme built on Roots/Sage. I have a custom post type "Projects." Within projects, I've registered a taxonomy for categories (projects_category) and applied a rewrite ('slug' => 'projects/projects-category', 'with_front' =>…
Dealion
  • 13
  • 4
0
votes
2 answers

Please help me with this Sage install error caused by PHP 8.0.2

So I'm trying to install a basic Sage theme, but I keep getting this error: click here for the error or read below PHP 8.0.2 causes some problems and I am stuck with finding a solution... Can somebody give me some tips on what I should do? error: $…
0
votes
0 answers

Duplicate classes after using foreach

I use a foreach to print out an attachment_image from a blog post. But for some reason a button duplicates the amount of posts and I dont know what I am doing wrong. I am using sage 10 with bootstrap 5: @php $images =& get_children( array ( …
dennis
  • 3
  • 1
  • 3
0
votes
0 answers

Using multiple singe-product templates

I'm currently building a woocommerce website using Sage 9. I'm trying to create different product page templates for each of my categories. I've got an unclassed category and a "Custom" category. Right now, i've tried 2 methods : Adding a filter in…
0
votes
1 answer

Get page name correctly (data-barba-namespace with Barba.JS and Wordpress)

Right now, i'm using Sage 9 to create a theme. I've installed Barba and it works fine except for one thing. I'm trying to get the page name correctly in my data-barba-namespace. For now, i was using the following : data-barba-namespace="{{…
Perdixo
  • 1,021
  • 3
  • 15
  • 31
0
votes
2 answers

Roots Sage 10 using view Composers outside of app directory

For anyone who is familiar with Sage 10, I am trying to get View Composers working outside of the default app/View/Composers directory. I have another directory Composers inside the parent directory of the Sage 10 directory and loaded it in…
Bas
  • 1
  • 2