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

Is there a way to convert nested LESS to un-nested SCSS?

I am transfering a lot of LESS files from an my old way of developing in Wordpress to Sage 9, and the linter is going crazy. So I would love a way to convert nested LESS to un-nested SCSS that the linter will allow.
Haffy
  • 25
  • 6
0
votes
1 answer

Add if statement to WP query using Sage

so it might be something really stupid/easy but I am not able to solve that. What I'm trying to achieve is to display an information after WP loop if no posts are found. So I've got this piece of code: @php $args = array ( …
Julia Galden
  • 449
  • 10
  • 23
0
votes
1 answer

Unable to use array from external file

I’ve added a file inside App/icons/icons.php which has an array
MelbDev
  • 355
  • 1
  • 5
  • 12
0
votes
1 answer

Wordpress Roots/Sage template Uncaught TypeError: $ is not a function

so i recently started exploring wordpress, heard about this theme Roots/sage that is similar to how php frameworks work like larvel which im more familiar with. Installed the theme with success, Set it up, all is working, Browsersync-…
Royal
  • 69
  • 5
0
votes
0 answers

Catalina sh: /usr/local/bin/php: Bad CPU type in executable

I have been wrecking my head over this, since a week now. I am on Mac catalina. I have installed PHP 7.3 using brew. $php -v PHP 7.3.11 (cli) (built: Feb 29 2020 02:50:36) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.11, Copyright…
rednivlat
  • 135
  • 2
  • 2
  • 11
0
votes
1 answer

Embedding react component in Wordpress project based on roots/sage

So I have been trying to embed a react component into a existing wordpress project based on the roots/sage setup. Have been searching through the internet for guides on how to do this and I can't find any way to do this. When I read the wordpress…
0
votes
1 answer

How to pass a parameter from blade template to controller

I'm working on a sage template on bedrock boilerplate, which uses laravel blade and controller. I'm getting posts data from WordPress API and displaying it by category. This gets done on controller. I want to pass a parameter on the blade template…
0
votes
1 answer

Can I push staging to live using managed wordpress hosting like Kinsta or Wp Engine while site is developed using trellis/bedrock?

I have successfully developed my first site using Trellis/Bedrock/Sage. I have deployed it to staging and live on Kinsta without having any trouble. Some redirection problems occurs when I add my real domain on Kinsta e.g. example.kinsta.cloude to…
Imran
  • 1,094
  • 1
  • 21
  • 41
0
votes
1 answer

Using Sage in a website that needs to be maintained by mere mortals

I am trying to help out an organization that hired some developers to create their website back in 2016, and the developers haven't touched the site since 2016. I don't know enough about Sage to know if the developers really screwed things up, or if…
0
votes
1 answer

Advanced Custom Fields scope issues with Roots Sage 9

I’m using Roots Sage 9 inside WordPress and utilising the FrontPage.php controller which already has protected $acf = true; defined in it which is working okay, it outputs what I expect it to for the most part. In my ACF configuration for the front…
Andy Holmes
  • 7,817
  • 10
  • 50
  • 83
0
votes
1 answer

Laravel foreach with 2 key/pair functions

I have multiple arrays with similar key/pair sets. I'd like to loop through them using a foreach and print 2 per page element. Sets:
@foreach ($cargovolumes_cy as $cargos_cy) {!! $cargos_cy !!} …
canacast
  • 231
  • 8
  • 23
0
votes
1 answer

How to create a static front page with blog posts in Sage?

I am trying to create a static homepage custom template, with a structure like this: Hero Some images and texts [Blog Posts] Footer The problem is my code showing posts with post type: page, instead of post type: post. I use Sage (Roots.io)(Blade…
Faris Han
  • 525
  • 3
  • 16
0
votes
1 answer

Trouble importing Vue mixins into Webpack / vue-loader environment

I’m having a small issue. Until this point, everything has been compiling fine, until trying to get mixins working properly. When creating one and using it all within a single file component – no problem. Works great. But when importing a mixin from…
Brendan
  • 125
  • 2
  • 14
0
votes
1 answer

After changing paswords in vault.yml, deployment fails in trellis

I had a wordpress site setup using Trellis. Initially I had set up the server and deployed without encrypting the vault.yml. Once everything was working fine I changed the passwords in vault.yml and encrypted the file. But my deployment fails now.…
Praneetha
  • 303
  • 4
  • 17
0
votes
0 answers

Transform a Sage WordPress theme to a regular theme

I cloned a WordPress Theme that is unfinished and has been made with Sage, so in order for me to work on that theme I need to install and run Sage, but it’s giving me different errors in my local environment and it's taking me too much time to solve…
Paul
  • 1
  • 4