Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Sora Article Theme

Started by Ricky 7 years ago · 3 replies · 656 views
7 years ago

I have been trying to modify the SoraArticle theme.

Can anyone tell me where the header is located? I am trying to change the header and cannot seem to locate it. It does not appear to be in the site.yaml file.

Secondly, when I change the folders in the user file, the navigation does not seem to update.

Any help or guidance where to find the answers would be greatly appreciated.

7 years ago

Hello @pbassi, so you mean the header that says "SoraArticle"? If so, this is actualy a graphic so you could replace the existing logo.png file in the user/themes/sorarticle/images folder. However, to make a change like this that would be always kept even with future theme updates it is best to setup an inherited theme https://learn.getgrav.org/16/themes/customization#theme-inheritance

Regarding the main navigation, this theme does not use a standard approach (where the menu is based on actual pages) but rather looks like it is pre-defined in the site.yaml file:

YAML
mainmenu:
    - text: Menu Item
      url: "#"
    - text: Another Item
      url: "#"
    - text: One more
      url: "#"
    - text: Contact
      url:  page:contact

Changing those items in the site.yaml file should get you going with a custom menu.

Please let me know how things go.
Paul

7 years ago

Paul
Thank you very much. I was able to change the menu with the info you provided. I also found the code that allowed me to swap out the logo.

When I followed the instructions for creating a child them it seemed to:

  1. break the link to the logo image

  2. Broke the slider that is present at the top

Can you give me some ideas abi=out how to trouble shoot this?

Thanks

Ricky Bass

7 years ago

Hi @pbassi, if you can make a ZIP file of your inherited theme and send it to me at paul [at] hibbittsdesign [dot] org I could take a quick look at things.

UPDATE: It looks like the location of the theme's images folder is a bit hard-wired. If you copy that folder to your new mytheme folder I think that could be it.

last edited 08/27/19 by Paul Hibbitts

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 99 16 hours ago
General · by pamtbaau, 21 hours ago
1 63 20 hours ago
General · by Andy Miller, 1 day ago
0 48 1 day ago
General · by Marcel, 12 months ago
6 357 5 days ago
General · by Duc , 6 days ago
3 45 6 days ago