Web Development

Hi!
I started to work with HubSpot because of the student job. I should create a landing page, I was asked to create new modules for each section and use them for dnd. However, I have issues to start.
So far, I tried to copy the existing theme, and edit it with “design manager” - codes, and “theme-editor” - so just changing the content there on the left side.
Q1: How to change the color of the button in the css?
Hubl CSS
.button--outlined {
background-color: transparent;
color: {{theme.global_colors.primary_color.color}};
border: 2px solid {{theme.global_colors.primary_color.color}};
font-weight: bold;
}
Output CSS
.button--outlined {
background-color: transparent;
color: #1EC95B;
border: 2px solid #1EC95B;
font-weight: bold;
}
Q2: I copied the existing theme, and I went to landing page sections, opened, edit, settings… , how do I connect it together with the theme in the design editor? When I open it from the website editor, it still puts me to the theme I copied not the copy I created. How do I link it all together so I can see the changes?
Q3: How to create modules from the scratch and connect all the predefined things HS has to build a landing page in 5 days? :grinning_face_with_smiling_eyes:
Thanks!

@LuciaM

I would recommend checking out the HubSpot Academy certification program for Developers

@jonchim , might be able to help with some of this, but I think you would gain a lot more knowledge through that course!

Hey @LuciaM!

The course that @dennisedson linked is great! i definitely recommended checking that out when you can.

Q1: the color of the button can be changed via the theme settings since the css is calling it from the theme. Otherwise if you navigate to your theme folder > css and then open the theme-overrides.css file you can manually remove that HubL if you needed to and replace it with the color of your choice.

Q2: when creating a landing page you’ll need to change out the theme in order to see the cloned version you created. Or you can search the template by name. Once you create the landing page and place your copy you should be able to preview that page with changes.

Q3: Regarding modules, my colleague Jeff wrote this post on creating a custom module Feel free to check it out! I would also give this a read as well!

Hey, just saw your thread and still wanted to help. To change the color of the button in CSS, you can tweak the “background-color” and “border” properties to the color you want. Just replace “{{theme.global_colors.primary_color.color}}” with your desired color code. If you’re having trouble linking your copy to the theme in the design editor, make sure you’ve saved your changes and try refreshing the website editor. You can speed up the process by using HubSpot’s predefined elements and features. And if you’re looking for more web development options, you could also check out Codexirra | AI Workspace for Building Web Applications. Anyway, just wanted to share my advice.