Bubble Forum Styles App for Everyone to Use (Buttons Added on 8/29)

Hey @jogo88 :slight_smile: If you would like the floating header to be displayed later on (further down on the page scroll), you would increase the number. So at the moment the conditional formatting is “When current scroll is greater than 600 px” → This element is visible. You would change that to something like 1000px or more depending upon how far down the page (in pixels) you want it to show.

You can have elements fade in using transitions – for the floating header it’s probably easiest to achieve through the workflow. If you have the conditional formatting of the floating header to look like this:

In the workflow you could go to “Do when condition is true”:

And then the setup would be “When (every time) the floating header is visible”:

Animate → Floating Header, Transition Fade In:

For the submenu, how many ‘submenu’ options do you have in your app?

2 Likes

Here is a smaller example I made in the app using three submenu buttons:

Preview:

Editor:

I think this easiest way to do this is to use the ‘Send Data’ to a group method (similar to the Bubble tutorial: Sending data to a group on Vimeo)

To make the submenu work, we can use a repeating group and a group. The repeating group will display all of our ‘Submenu’ buttons when the page is loaded, and when a ‘cell’ [submenu button] is clicked, the workflow allows us to send/display data of that clicked Submenu Button, to the Group below it.

To do this, I created a new data type called Submenu:

Then created the fields ‘Title’ and ‘Image’ (here you can add as many fields as you’d like but I just kept it to two in this example). Once you have this set up, you can go into the App Data tab and create new Submenu app data entries:

Once that part is completed, I went back to the Design Tab of my page and created “RepeatingGroup Submenu” with these settings.

This set up is searching for my submenu items, and displaying a fixed number of 3 cells (because I only have three menu items in this example). Squarespace’s homepage has 8, so the difference would just be to make the repeating group wider and the column number would be 8). Within each cell, there is a button element and the data source is going to be 'Current Cell’s Submenu Title", with the styling of the ‘Submenu Button’:

Then I added one Group below called “Submenu Group”:

And created a text element within it (for the header):

And an image element as well:

Then in the workflow you would say, when the Submenu Button (the one in the Repeating Group) is clicked → Display Data [in Submenu Group] Current Cell’s Subemenu

And that should work! :slight_smile:

2 Likes

Hi Fayewatson, i got the floating header working. Thank you so much, that was super helpful. I have 5 submenu items. I’m gonna take a look at what you did and see if I can get it to work too. :grinning:

Hi Fayewatson, for the submenu in your example:

  1. Is the default always going to be food? Or do i need to set it up somewhere as to which item is the default?
  2. How can I change the color of the submenu when it is active (clicked)? I tried it in the condition tab but when I chose “when clicked” it only works during clicking. After you click on it, it goes back to the old color.

So if I’m gonna follow squarespace’s example, I’ll just delete the main image, put the group there with the image, text and button inside it right?

Thank you so much and sorry for the newb questions.

Awesome! My pleasure :slight_smile: Not newb questions at all!

  1. So with that setup, yes, the default would always be ‘food’. You can change this depending upon how you ‘sort’ the results. I did not set up a ‘sort’ option, so Bubble automatically sorts by Created Date (I think). Meaning, it’s choosing ‘Food’ every time because Food was the Submenu first data entry I created of the three (bottom entry).

However, if we were to change this to sort by ‘Title’ for example:

‘Descending? “No”’ means we are going in alphabetical order. So, with this set up, ‘Fashion’ will be shown by default. By selecting ‘Yes’, Music is shown by default (Reverse ABC order). Food would not be shown because it is always in the middle of ABC order of the three (Fashion, Food, Music vs. Music, Food, Fashion).

  1. In the conditional tab of the submenu button, you could have this statement (or underline, change color, whichever you prefer to indicate it is ‘active’):

And yes, you could definitely customize this and use that set up by deleting the main image and placing a group there. Definitely up to you on how you customize it. You could keep an image as a background image, and place the submenu group over it. Any way you prefer :slight_smile:

**You could set up a field within the Submenu Data Type called ‘Order’ (Type: Number, List: No). and then associate each submenu data entry with a number. Then in the Submenu Button Repeating Group you can sort by ‘Order’, Descending: No. And then use that same sort option for the Submenu Group.

1 Like

Hi fayewatson, thanks so much for all the help. 1 more question, I took out the main image and placed the group instead with the image inside, heading and subheading. My problem now is that the image doesn’t resize even if I stated the size to be 1200x617. some image stretches, some don’t. How come? How can I fix this and would I have a problem with the responsiveness?

I’m learning so much. Thank you.

No problem at all :slight_smile: So for images to be responsive you have to change two settings, on the page itself and on the image element. When you open the property editor of the page (double-click on a blank area of the page), scroll down to this option:

Make sure ‘make this element fixed-width’ is unchecked (we’re telling Bubble we want our page to be responsive by doing this). Then go back into your image’s property editor and make sure ‘fixed-width’ is also unchecked there, and ‘keep element in proportion as page is resized’ is checked.

You can view your page in responsive mode by clicking the ‘Responsive’ tab to the right of ‘UI Builder’

Here you can adjust more responsive settings while viewing your page at different widths (without previewing over and over). This helps to you make your site look great no matter what size of the browser window (The tutorial that shows when you click ‘watch tutorial’ is very helpful: )

1 Like

Hello Everyone,

I just added a new page of “Minimalistic Buttons” (these incorporate icons after the latest update which allows us to combine icons and text in text elements) like this:

Preview:

Editor:

Please feel free to use them! They are animated when they are pressed. It is probably easiest to copy+paste the Style in your app, and then go back and copy the button itself in order to have the text and style of the button.

Thank you so much for checking out my app! :slight_smile:

4 Likes

@NigelG I think these might work with the Stylespace theme :slight_smile: but up to you of course!

Adding Color Example:
(Keeping the ‘Save’ Text element, and pasting the ‘Create 2 Button’ Style on it)

Preview:

Editor:

2 Likes

Looks great, thank you very much !!

1 Like

Awesome!!! No problem! :slight_smile:

Hi Fayewatson,

So I did the group and placed the main image inside it as well as the heading and sub heading. My problem now is I can’t get the position of the “get started” button correctly. I was thinking of including it in the group to solve the layout problem but when I try to add a new field in the SubMenu data group, there’s no option for button? How will I do this?

On a different note, I wanted to make this the homepage so I was renaming the default index to Old_index and renaming this page as index but it won’t let me rename index. How can i make this the default page then?

Thank you so much!

There’s an option to “Make this page Index.” Bubble doesn’t let you rename the index yourself, for obvious reasons. When you’re on the page you wish was your new Index, click the “Edit” menu on the tool bar. The last item on that menu is “Make this page new index.” Click that, and Bubble magic!

1 Like

@fayewatson Great Job. I will used some ideas here. Thanks.

1 Like

Hi @jogo88 You can include it in that group – you’d just type “Get Started” in the button text field, instead of using dynamic data. And exactly what @potentialthings said! Bubble magic! :slight_smile:

So using a button element here:

Then placing it in the group with any ‘Style’ you prefer:

1 Like

Thank you so much @JohnM! Sounds great! :slight_smile:

1 Like

Hi Fayewatson,

I’m working on the reset password page. Please take a look at the screenshot

  1. for the password and confirm password field, I just applied the style from stylespace but if you look at the preview page, it works on the confirm password but not on password.

2.Also, I don’t understand how come the box (forget password group content) stretched in the preview when I didn’t change any of the settings.

3.for the footer, I added some fields from stylespace page and included it in the footer. Now I added the footer on the reset password page but when I preview it, its left aligned and not being centered. How do I fix that?

Thank you so much. Learning a lot from all your help.

Hi @jogo88 I think the best bet is to learn about all of this through Bubble’s tutorials, as well as the responsive tutorial. Those videos explain why elements will stretch, shrink, and how to align (https://bubble.io/documentation) and then there are also more videos here: https://vimeo.com/bubblegroup. For specific questions about your app its best to create new topics in the forum with links to your editor when you’ve already tried to find a solution through the tutorials and forum. But generally most questions are answered through the tutorials, documentation or forum search. It takes some time to get the hang of it but it will be faster/more efficient to learn how to build your app that way :slight_smile:

3 Likes

@fayewatson I really struggled to get the “text” buttons to work properly - they didn’t want to trigger actions. So wen’t back to a button.

Here is where I got to, hopefully it looks a bit better than the red and blue gradient thing it was before !

1 Like

@NigelG Building on Bubble looks amazing!! :clap: :clap: :clap: :clap: I didn’t get a chance to see all of it yet but definitely will be later today :smiley: And I noticed the same thing with the text buttons and workflows yesterday. I filed a bug report just incase; It turns out they will work as expected if you remove the part of the ‘is pressed’ conditional statement that decreases the font size on mousedown. Emmanuel said it’s a bug with jquery and it’s best to remove that decrease the font size property for now, though they will look for a fix. When I’m back on my computer I’ll remove that part of things from the text buttons on the Styles app. :+1: