The Big Spring Sale! Up to 50% off!

element ID

acemang
38 Posts
acemang posted this 02 June 2021
Ask a Question

is it possible to add IDs to elements??

I'm trying to implement myself a Hambuger menu in a Block since the Header is useless to me and menus can only be inserted in Headers, I've to do a menu myself, but I can't put this code in my code:

https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_topnav

Do you have any tutorial that some code like this can be made in Nicepage?

Regards.

is it possible to add IDs to elements?? I'm trying to implement myself a Hambuger menu in a Block since the Header is useless to me and menus can only be inserted in Headers, I've to do a menu myself, but I can't put this code in my code: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_topnav Do you have any tutorial that some code like this can be made in Nicepage? Regards.
Vote to pay developers attention to this features or issue.
8 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 03 June 2021

Hello!

Could you clarify, please, why you need to attach the menu inside of a block instead Header part?
If you explain we will be happy to provide possible decisions.
Because for now, you can create the same adaptive menu with the Hamburger button for devices you need.

You can add only block anchors, for any other elements you can add Class.
Just select element - on the panel on the right you will see the "CSS Class" option.

...................................................
Sincerely,
Negat Veri
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello! Could you clarify, please, why you need to attach the menu inside of a block instead Header part? If you explain we will be happy to provide possible decisions. Because for now, you can create the same adaptive menu with the Hamburger button for devices you need. You can add only block anchors, for any other elements you can add Class. Just select element - on the panel on the right you will see the "CSS Class" option. ................................................... Sincerely, Negat Veri Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
acemang
38 Posts
acemang posted this 03 June 2021

I didn't understood your answer. "Because for now, you can create the same adaptive menu with the Hamburger button for devices you need." It is possible to add the menu on a block?? It doesn't let me.

I want to attach the menu inside of a block because I've 2 pages, 1 in english other in portuguese. I can't have the menu in english for the portuguese language, so I had to create a block (your suggestion in another question) and I created a similar menu of the header. I then in the portuguese version, hide the english header and use the block as a header. but lost the hambuger for mobile devices doing this way. It would be easy for me to use the menu element on a block. If you have any other suggestion please do.
using only classes for objects is really bad because most of javascript code out there use elements IDs. Nicepage could have that variable in there like you have for classes. I tried to put javacscript code with css on the block, but nicepage is so limited that It's making my life hard or impossible to be able to do what I want, 2 menus in different pages, 1 for each language. I don't use Wordpress or similar, I only use HTML version, don't tell me to use plugins for translating....
The problem is in image 13.jpg because I created that menu in a block, because I can't create in the header.

I didn't understood your answer. "Because for now, you can create the same adaptive menu with the Hamburger button for devices you need." It is possible to add the menu on a block?? It doesn't let me. I want to attach the menu inside of a block because I've 2 pages, 1 in english other in portuguese. I can't have the menu in english for the portuguese language, so I had to create a block (your suggestion in another question) and I created a similar menu of the header. I then in the portuguese version, hide the english header and use the block as a header. but lost the hambuger for mobile devices doing this way. It would be easy for me to use the menu element on a block. If you have any other suggestion please do. using only classes for objects is really bad because most of javascript code out there use elements IDs. Nicepage could have that variable in there like you have for classes. I tried to put javacscript code with css on the block, but nicepage is so limited that It's making my life hard or impossible to be able to do what I want, 2 menus in different pages, 1 for each language. I don't use Wordpress or similar, I only use HTML version, don't tell me to use plugins for translating.... The problem is in image 13.jpg because I created that menu in a block, because I can't create in the header.

Last edited 03 June 2021 by acemang

Support Team
Support Team posted this 04 June 2021

Hello,

Thanks for the information, now we better understand your goal.

We are sorry to tell you that Nicepage, for now, doesn't support multilanguage. That possibility in our wishlist and a lot of our customers use CMS to translate pages.
There is the problem with the Header, because Header is part of the Theme so it will be displayed on all the pages in the same language.
We can only suggest getting your elements by javascript through Block ID and then find elements inside that block.

In image 13 it's hard to understand what you want to achieve. Tell how it should look and what elements you used to create the menu in a block.

...................................................
Sincerely,
Negat Veri
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello, Thanks for the information, now we better understand your goal. We are sorry to tell you that Nicepage, for now, doesn't support multilanguage. That possibility in our wishlist and a lot of our customers use CMS to translate pages. There is the problem with the Header, because Header is part of the Theme so it will be displayed on all the pages in the same language. We can only suggest getting your elements by javascript through Block ID and then find elements inside that block. In image 13 it's hard to understand what you want to achieve. Tell how it should look and what elements you used to create the menu in a block. ................................................... Sincerely, Negat Veri Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
acemang
38 Posts
acemang posted this 14 June 2021

image 13 is not what I want. It's what I get with a block and not with a menu that I wanted.

The menu I simplify and only have 2 items:
English:
About
Contact

Portuguese:
Sobre
Contactos

I've made a button also to change the language page.

image 13 is not what I want. It's what I get with a block and not with a menu that I wanted. The menu I simplify and only have 2 items: English: About Contact Portuguese: Sobre Contactos I've made a button also to change the language page.

Last edited 14 June 2021 by acemang

Support Team
Support Team posted this 15 June 2021

Hello

We are sorry to say, but the menu can be added only into the Header section.

There is no possibility to add an ID to the menu items, but you can easily hide elements through the Jquery selector by class.
You can easily add code shown before into the HTML control, without using elements ID.

Also, the best way to make a multilanguage website is to create two websites (one for each language). One website put into the subfolder and switches between the main website and the website in a subfolder.

...................................................
Sincerely,
Negat Veri
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello We are sorry to say, but the menu can be added only into the Header section. There is no possibility to add an ID to the menu items, but you can easily hide elements through the Jquery selector by class. You can easily add code shown before into the HTML control, without using elements ID. Also, the best way to make a multilanguage website is to create two websites (one for each language). One website put into the subfolder and switches between the main website and the website in a subfolder. ................................................... Sincerely, Negat Veri Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
acemang
38 Posts
acemang posted this 15 June 2021

"There is no possibility to add an ID to the menu items, but you can easily hide elements through the Jquery selector by class."
I will study this. Thanks.

"You can easily add code shown before into the HTML control, without using elements ID."
Sorry, but didn't undestood what you are trying to say.

"Also, the best way to make a multilanguage website is to create two websites (one for each language). One website put into the subfolder and switches between the main website and the website in a subfolder."
This is not the best way, is the worst and only way I can think about. But when I got 5 languages...it will be 5 websites, 1 change is 5 changes......for now that I've only 2 languages it will do the job but I was searching for a better way.

Thanks for your help.

"There is no possibility to add an ID to the menu items, but you can easily hide elements through the Jquery selector by class." I will study this. Thanks. "You can easily add code shown before into the HTML control, without using elements ID." Sorry, but didn't undestood what you are trying to say. "Also, the best way to make a multilanguage website is to create two websites (one for each language). One website put into the subfolder and switches between the main website and the website in a subfolder." This is not the best way, is the worst and only way I can think about. But when I got 5 languages...it will be 5 websites, 1 change is 5 changes......for now that I've only 2 languages it will do the job but I was searching for a better way. Thanks for your help.
Support Team
Support Team posted this 15 June 2021

"You can easily add code shown before into the HTML control, without using elements ID."

That's means that the code example you showed us before can be used in Nicepage. Add the code to the HTML element.

We were talking about websites in two languages.
The only suggestion it's translations plugins with predefined translation for different languages. So you will have the ability totally control your content in different languages. Please note that Nicepage does not provide ant features for multilanguage websites. Therefore, in this case this is the best option.

I hope you will find the best way to achieve your goals!

...................................................
Sincerely,
Negat Veri
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

"You can easily add code shown before into the HTML control, without using elements ID." That's means that the code example you showed us before can be used in Nicepage. Add the code to the HTML element. We were talking about websites in two languages. The only suggestion it's translations plugins with predefined translation for different languages. So you will have the ability totally control your content in different languages. Please note that Nicepage does not provide ant features for multilanguage websites. Therefore, in this case this is the best option. I hope you will find the best way to achieve your goals! ................................................... Sincerely, Negat Veri Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp

Last edited 16 June 2021 by Support Team

acemang
38 Posts
acemang posted this 16 June 2021

"That's means that the code example you showed us before can be used in Nicepage. Add the code to the HTML element."
I don't want to add the code, but to adapt to a menu I already have. Made with my own fonts, sizes, distances and colors.
I tried to adapt but had trouble adapting because the code used IDs and I could not link my objects to that code. I had to learn and changed the code to use classes only and not ID's. But 99% of code out there uses ID's. Don't have a clue why Nicepage don't support that.
Also, I give up that route because I needed to have 2 blocks, one for each language and I could not hide a block to all views. Only to all but 1. Nicepage have multiple basic limitations that doesn't make it easy to make needed modifications.
If you need simple 1 single language page, Nicepage will do perfect. I'm mean only in exporting to HTML and not to other platforms like WordPress, that I could use the plugins to have multiple languages. But that's a feature of WordPress, not Nicepage. And there are much betters programs to work with WordPress out there. Oxygen is years ahead of Nicepage with his core features and thought since the start. I've made full websites with multiple languages easy in Oxygen. I found out Nicepage, and It can export to HTML only, so it will be a much faster webpage. I'm from that line of doing things, so I'm trying to migrate to Nicepage, but It needs months or years of work to be a good alternative at this pace. Still, you have an excellent platform and I can see a very bright future IF invested in the right things to invest. Focus where you are better than others to make it stand out even further. Trying to catch where others are better is a lost cause. They also invest every year on that in a faster pace. Having more templates than others is a marketing effect. Nicepage is very easy to create a block from scratch, focus on that also and not saying that you have 7500 blocks is great (that are almost all the same). You have your priorities ofc and your route. I just gave you some advices, nothing more. You can be the best platform to export to HTML, that you can provide a hosting plan for that also for non developers. And can be the fastest code created also getting great scores on website performances that means less people will abandon websites for being too slow. That's a win-win formula that can't be beaten. You have an excellent product already, but can be way better. Keep the good work.

"That's means that the code example you showed us before can be used in Nicepage. Add the code to the HTML element." I don't want to add the code, but to adapt to a menu I already have. Made with my own fonts, sizes, distances and colors. I tried to adapt but had trouble adapting because the code used IDs and I could not link my objects to that code. I had to learn and changed the code to use classes only and not ID's. But 99% of code out there uses ID's. Don't have a clue why Nicepage don't support that. Also, I give up that route because I needed to have 2 blocks, one for each language and I could not hide a block to all views. Only to all but 1. Nicepage have multiple basic limitations that doesn't make it easy to make needed modifications. If you need simple 1 single language page, Nicepage will do perfect. I'm mean only in exporting to HTML and not to other platforms like WordPress, that I could use the plugins to have multiple languages. But that's a feature of WordPress, not Nicepage. And there are much betters programs to work with WordPress out there. Oxygen is years ahead of Nicepage with his core features and thought since the start. I've made full websites with multiple languages easy in Oxygen. I found out Nicepage, and It can export to HTML only, so it will be a much faster webpage. I'm from that line of doing things, so I'm trying to migrate to Nicepage, but It needs months or years of work to be a good alternative at this pace. Still, you have an excellent platform and I can see a very bright future IF invested in the right things to invest. Focus where you are better than others to make it stand out even further. Trying to catch where others are better is a lost cause. They also invest every year on that in a faster pace. Having more templates than others is a marketing effect. Nicepage is very easy to create a block from scratch, focus on that also and not saying that you have 7500 blocks is great (that are almost all the same). You have your priorities ofc and your route. I just gave you some advices, nothing more. You can be the best platform to export to HTML, that you can provide a hosting plan for that also for non developers. And can be the fastest code created also getting great scores on website performances that means less people will abandon websites for being too slow. That's a win-win formula that can't be beaten. You have an excellent product already, but can be way better. Keep the good work.

Last edited 16 June 2021 by acemang

You must log in or register to leave comments