Roots Discourse

Roots 6.5 with Bedrock and Trellis

I’ve inherited an old project that was built on Roots 6.5… that was when Sage was Roots and Roots was just a theme.

The budget is low and they want their old 6.5 theme setup with Trellis and Bedrock. I’m trying to determine the quickest way to approach this.

So far I have a local Trellis vagrant setup running with the theme loaded and database running properly. Styles and js files appear to be loading properly. The only issue here is narrowing down the paths to image files in the -> /themes/theme/assets/img folder within Bedrock.

I can’t quite seem to figure out how to set the correct paths.

For example, here’s the current path to the logo in the header:
<img src="<?php echo home_url() ?>../assets/img/logo-sm.png" class="logo img-responsive visible-xs" />

Here’s how a background image is loaded in a stylesheet:

.banner {
  background: url(../img/header-bkg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  height: 80px;
  margin: 0;
  border: none;

Luckily it appears that running GRUNT builds the LESS files and that fixes the background image issues so that’s great. Just having trouble with the assets path.

I’m not sure I understand the question. It’s not clear what a “wrong” result looks like, and why it’s wrong. If you need the URL of assets, why can’t you just use

This topic was automatically closed after 42 days. New replies are no longer allowed.