Widget and text in wordpress

rehman2
2 Posts
rehman2 posted this 08 November 2018
Ask a Question

Hi all,

I have question about widget and sidebars first.

  1. Whitin the theme i add a position from the menu (Click Add-> Position and Shortcode -> Position and Sidebar).
  2. I name the sidebar.
  3. Export the theme as a wordpress theme.
  4. Intalling the theme into wordpress.
  5. When I click Appearance -> Widgets there are no sidebars.

What am I doing wrong?

As 2nd

Is it possible to create a theme in nicepage but use the option from wordpress. So upload a theme create in nicepage and use the page option too create new pages. So only the text and menu's are changing.

Regards,

Rehman

Hi all, I have question about widget and sidebars first. 1. Whitin the theme i add a position from the menu (Click Add-> Position and Shortcode -> Position and Sidebar). 2. I name the sidebar. 3. Export the theme as a wordpress theme. 4. Intalling the theme into wordpress. 5. When I click Appearance -> Widgets there are no sidebars. What am I doing wrong? As 2nd Is it possible to create a theme in nicepage but use the option from wordpress. So upload a theme create in nicepage and use the page option too create new pages. So only the text and menu's are changing. Regards, Rehman
Vote to pay developers attention to this features or issue.
18 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 08 November 2018

Hi Rehman,

As for the position, maybe you have added it inside the content. In this case you need to use the existing widget area name. Please have a look to this video, I hope that it will be helpful:
https://nicepage.com/doc/article/6461/

And your second question is not completely clear. You want to install the Nicepage theme on the site and use some WP options. What options?

...................................................
Sincerely,
Hella
Nicepage Support Team

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

Hi Rehman, As for the position, maybe you have added it inside the content. In this case you need to use the existing widget area name. Please have a look to this video, I hope that it will be helpful: https://nicepage.com/doc/article/6461/ And your second question is not completely clear. You want to install the Nicepage theme on the site and use some WP options. What options? ................................................... Sincerely, Hella Nicepage Support Team Please subscribe our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
rehman2
2 Posts
rehman2 posted this 08 November 2018

Hi Hella,

I start to understand the first question.

in the 2nd question I mean more that I like 1 template which I can use for multiple pages. The pages I want to create with WP.

Regards,

Rehman

Hi Hella, I start to understand the first question. in the 2nd question I mean more that I like 1 template which I can use for multiple pages. The pages I want to create with WP. Regards, Rehman
Support Team
Support Team posted this 08 November 2018

Hi Rehman,

In Nicepage Desktop you can create a theme for Wordpress. Simply launch Nicepage Desktop >> create a new website with an empty page, configure Post and Blog templates, and Header and Footer and then export the website as a WP Theme. The Blog template is used for WP Posts page, the Post template is used for all other pages and posts.

Please let us know if you have any further questions.
...................................................
Sincerely,
Olivia
Nicepage Support Team

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

Hi Rehman, In Nicepage Desktop you can create a theme for Wordpress. Simply launch Nicepage Desktop >> create a new website with an empty page, configure Post and Blog templates, and Header and Footer and then export the website as a WP Theme. The Blog template is used for WP Posts page, the Post template is used for all other pages and posts. Please let us know if you have any further questions. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
Alan Henness
155 Posts
Alan Henness posted this 04 December 2019

Ah. This is beginning to make some sense now. I've been struggling to understand how I can use Nicepage in place or Artisteer. I'm mostly interested in creating themes rather than use Nicepage as a content builder but it's taken me a while to realise how this can be done.

So, in the desktop version, I create the Blog template for the page that will show the posts in blog format and a Posts template for each individual blog post and for pages? (Your terminology is confusing here!) I assume I don't have to have the Nicepage plugin installed in WordPress and I simply use the native WordPress editor for posts and pages?

I can't say I've seen this clearly stated in the videos, but maybe I've just missed this. If you've not made a video about using Nicepage as a theme generator that replaces Artisteer, can you consider doing that?

But is it possible to add a page in Nicepage that can be the website's front page but still allows posts and pages to be edited in the native editor?

It's maybe worth saying why I think I want to do it this way: I run a few websites for friends. They are good creators of content but not webdesign and learning how to use Nicepage is just not going to happen. Also, what I don't want is them editing the content of pages and messing up the design: they are used to using the native editor and they can use that without messing up the page layout. Being able to simply create a template as Artisteer did resolves all those problems.

Also, does this also apply to joomla - can I use it as a replacement for Artisteer?

Ah. This is beginning to make some sense now. I've been struggling to understand how I can use Nicepage in place or Artisteer. I'm mostly interested in creating themes rather than use Nicepage as a content builder but it's taken me a while to realise how this can be done. So, in the desktop version, I create the Blog template for the page that will show the posts in blog format and a Posts template for each individual blog post and for pages? (Your terminology is confusing here!) I assume I don't have to have the Nicepage plugin installed in WordPress and I simply use the native WordPress editor for posts and pages? I can't say I've seen this clearly stated in the videos, but maybe I've just missed this. If you've not made a video about using Nicepage as a theme generator that replaces Artisteer, can you consider doing that? But is it possible to add a page in Nicepage that can be the website's front page but still allows posts and pages to be edited in the native editor? It's maybe worth saying why I think I want to do it this way: I run a few websites for friends. They are good creators of content but not webdesign and learning how to use Nicepage is just not going to happen. Also, what I don't want is them editing the content of pages and messing up the design: they are used to using the native editor and they can use that without messing up the page layout. Being able to simply create a template as Artisteer did resolves all those problems. Also, does this also apply to joomla - can I use it as a replacement for Artisteer?
Support Team
Support Team posted this 05 December 2019

Hi,

You are correct, you can export the theme only, it will include the Blog and Post templates, Header and Footer. Then you can use the usual editor on your site to create pages, the Nicepage plug-in is not needed in this case.
But if you want to create one page content using the Nicepage editor, then the site will need to have the plug-in installed on the site to display that content and to edit it.

Let me know if you have any other questions.

...................................................
Sincerely,
Hella
Nicepage Support Team

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

Hi, You are correct, you can export the theme only, it will include the Blog and Post templates, Header and Footer. Then you can use the usual editor on your site to create pages, the Nicepage plug-in is not needed in this case. But if you want to create one page content using the Nicepage editor, then the site will need to have the plug-in installed on the site to display that content and to edit it. Let me know if you have any other questions. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
Alan Henness
155 Posts
Alan Henness posted this 05 December 2019

Thanks, Hella.

I can create a sidebar to the left or right but I can't seem to create both at the same time - see screenshot. Is this a limitation of Nicepage or is there a way to add both?

Thanks, Hella. I can create a sidebar to the left or right but I can't seem to create both at the same time - see screenshot. Is this a limitation of Nicepage or is there a way to add both?
Alan Henness
155 Posts
Alan Henness posted this 05 December 2019

Some progress, I think.

With the Post block that is there by default, it only seems possible to have one sidebar either to the left or the right but not both. I cannot seem to be able to insert a new block to the other side of the main central blog area. However, if I delete that block, add a new blank block, add a grid of three columns then add a position and sidebar to the two outside cells and name them, say, Left and Right and then add Blog template, Post content to the central cell, I get the content in the middle and WordPress widget positions in WordPress and I can now add whatever widgets I want there.

However, in WordPress, I get each widget duplicated next to each blog post in the blog list page. How do I stop that? I just want one Left and one Right sidebar extending from below the header to above the footer.

I noticed somewhere previously that I ended up with a Blog page in NicePage that had four Blog post content blocks - but I don't know why the need for four. It looks like WordPress will duplicate the blog post position however many times it needs for the blog page. Has that got anything to do with it?

Some progress, I think. With the Post block that is there by default, it only seems possible to have one sidebar either to the left or the right but not both. I cannot seem to be able to insert a new block to the other side of the main central blog area. However, if I delete that block, add a new blank block, add a grid of three columns then add a position and sidebar to the two outside cells and name them, say, Left and Right and then add Blog template, Post content to the central cell, I get the content in the middle and WordPress widget positions in WordPress and I can now add whatever widgets I want there. However, in WordPress, I get each widget duplicated next to each blog post in the blog list page. How do I stop that? I just want one Left and one Right sidebar extending from below the header to above the footer. I noticed somewhere previously that I ended up with a Blog page in NicePage that had four Blog post content blocks - but I don't know why the need for four. It looks like WordPress will duplicate the blog post position however many times it needs for the blog page. Has that got anything to do with it?
Support Team
Support Team posted this 06 December 2019

Hi,

Unfortunately, you cannot enable both Sidebars at the same time.

Wher there is only one Block that defines the appearance of the posts on the Blog Template this layout is used for each post. Therefore duplication is behavior by default. The Grid in the post Block is not the same as Sidebar. In this case, the Grid is equal to the Post Header, Post Content and other controls in the Block. They all displayed for each post including Grid.

Please let us know if you have any further questions.

...................................................
Sincerely,
Olivia
Nicepage Support Team

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

Hi, Unfortunately, you cannot enable both Sidebars at the same time. Wher there is only one Block that defines the appearance of the posts on the Blog Template this layout is used for each post. Therefore duplication is behavior by default. The Grid in the post Block is not the same as Sidebar. In this case, the Grid is equal to the Post Header, Post Content and other controls in the Block. They all displayed for each post including Grid. Please let us know if you have any further questions. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
Alan Henness
155 Posts
Alan Henness posted this 06 December 2019

So you are telling me there is no way to create a WordPress theme layout in Nicepage that has more than one sidebar?

This will, I'm sure, be a severe limitation to those trying to make straightforward themes.

Clearly this can be done in themes so this is a Nicepage limitation and not a WordPress one and something that Artisteer was more than capable of doing.

Any idea when this will be fixed?

So you are telling me there is no way to create a WordPress theme layout in Nicepage that has more than one sidebar? This will, I'm sure, be a severe limitation to those trying to make straightforward themes. Clearly this can be done in themes so this is a Nicepage limitation and not a WordPress one and something that Artisteer was more than capable of doing. Any idea when this will be fixed?
Support Team
Support Team posted this 06 December 2019

Hi,

Yes, unfortunately, you cannot have two sidebars at the same time. But the Sheet width is not so big for two sidebars. The middle content part will look too small.
Unfortunately, we do not plan to change Sheet width and add layout with two sidebars soon. But we added your request to our wish list.

...................................................
Sincerely,
Olivia
Nicepage Support Team

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

Hi, Yes, unfortunately, you cannot have two sidebars at the same time. But the Sheet width is not so big for two sidebars. The middle content part will look too small. Unfortunately, we do not plan to change Sheet width and add layout with two sidebars soon. But we added your request to our wish list. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
Alan Henness
155 Posts
Alan Henness posted this 06 December 2019

I'm glad I have found this out before buying Nicepage. I'll have to stick with Artisteer.

I'm glad I have found this out before buying Nicepage. I'll have to stick with Artisteer.
Alan Henness
155 Posts
Alan Henness posted this 06 December 2019

It looks fairly straightforward to add a sidebar by adding some code to functions.php and then adding its location to the template so I may try that before abandoning Nicepage.

https://www.ostraining.com/blog/wordpress/custom-sidebar/

It looks fairly straightforward to add a sidebar by adding some code to functions.php and then adding its location to the template so I may try that before abandoning Nicepage. https://www.ostraining.com/blog/wordpress/custom-sidebar/
Support Team
Support Team posted this 06 December 2019

Hi,

We added two sidebars to our wish list.
Please let us know if you have any further questions.

...................................................
Sincerely,
Olivia
Nicepage Support Team

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

Hi, We added two sidebars to our wish list. Please let us know if you have any further questions. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
Alan Henness
155 Posts
Alan Henness posted this 06 December 2019

Many thanks. Artisteer can cope with sidebars on either side of the content or two sidebars on the right so it would be good if Nicepage could do the same.

I think I read somewhere that Nicepage doesn't support vertical menus - is that correct and will that be added in the future?

Many thanks. Artisteer can cope with sidebars on either side of the content or two sidebars on the right so it would be good if Nicepage could do the same. I think I read somewhere that Nicepage doesn't support vertical menus - is that correct and will that be added in the future?
Alan Henness
155 Posts
Alan Henness posted this 08 December 2019

This seems fairly straightforward to do with a bit of knowledge.

I created a blank Nicepage theme with the sidebar on the right and exported that and uploaded it into WordPress. I named it basic_r_sidebar1.

I edited functions.php and added the code to create the new left sidebar (replace 'basic_r_sidebar1' with the name of your template and you can give it whatever name you like - I've called it 'Left Widget Area' and add whatever description you like):

function left_sidebar() {
register_sidebar(array(
    'name'          => __('Left Widget Area', 'basic_r_sidebar1'),
    'id'            => 'left',
    'description'   => __('Add widgets here to appear in your LEFT sidebar on blog posts and archive pages.', 'basic_r_sidebar1'),
    'before_widget' => '<widget id="%1$s" name="%1$s" class="widget %2$s">',
    'after_widget'  => '</widget>',
    'after_title'   => '</title>',
    'before_title'  => '<title>',
));

}
add_action('widgets_init', 'left_sidebar');

The id of this new sidebar is 'left'. This adds it to the Appearance:Widgets' screen in wp-admin where widgets can be added - see screenshot - but it now has to be added into the template so it can be seen. This is done in the file wp-content/themes/<theme name>/template-parts/layouts/post-before.php. This will have two lines of code:

   <div class="u-page-root"><div class="u-content-layout u-sheet">

<div class>

ETA: This doesn't seem to format correctly here: the second line should say div class="u-content" inside tags.

You need to add the following code (this is the code Nicepage uses for the right widget with an id of 'primary' but with the id changed to refer to the id of the new sidebar, left) between these two lines:

        <?php $sidebar_html = theme_sidebar(array(
        'id' => 'left',
        'template' => <<<WIDGET_TEMPLATE
            <div class="u-block u-indent-30 u-block-undefined-2">
  <div class="u-block-container u-clearfix">
    <h5 class="u-block-header u-text u-block-undefined-3">{block_header}</h5>
    <div class="u-block-content u-text u-block-undefined-4">{block_content}</div>
  </div>
</div>

WIDGET_TEMPLATE

    )); if ($sidebar_html): ?><aside class="u-indent-40 u-sidebar u-block-undefined-1">
<?php echo stylingDefaultControls($sidebar_html); ?>



<style data-mode="XL"> .u-block-undefined-1 {flex-basis: 250px}

.u-block-undefined-3 {font-size: 1.125rem; line-height: 2}
.u-block-undefined-4 {font-size: 0.875rem; line-height: 2}
.u-block-undefined-6 {font-size: 1.125rem; line-height: 2}
.u-block-undefined-7 {font-size: 0.875rem; line-height: 2}
.u-block-undefined-9 {font-size: 1.125rem; line-height: 2}
.u-block-undefined-10 {font-size: 0.875rem; line-height: 2}

<style data-mode="LG"></style>
<style data-mode="MD"></style>
<style data-mode="SM"></style>
<style data-mode="XS"></style>

<?php else:?><div class style></div><?php endif;?>

This will add the sidebar to the Posts page. If you want to add it to the Blog page as well as or instead of the Posts page, add the same code to wp-content/themes/<theme name>/template-parts/layouts/blog-before.php in the same way,

I've not yet got round to working out how to change the width of the sidebar - they are currently identical - but I think that should be straightforward with some CSS.

Note that this is hacking the template code and is probably frowned upon by Nicepage :-) but it gets round the problem until Nicepage can incorporate this feature. Also, it would probably be better to use a child theme but I've not done that yet.

If anyone sees any problems with doing this, please let me know!

This seems fairly straightforward to do with a bit of knowledge. I created a blank Nicepage theme with the sidebar on the right and exported that and uploaded it into WordPress. I named it basic_r_sidebar1. I edited functions.php and added the code to create the new left sidebar (replace 'basic_r_sidebar1' with the name of your template and you can give it whatever name you like - I've called it 'Left Widget Area' and add whatever description you like): function left_sidebar() { register_sidebar(array( 'name' => __('Left Widget Area', 'basic_r_sidebar1'), 'id' => 'left', 'description' => __('Add widgets here to appear in your LEFT sidebar on blog posts and archive pages.', 'basic_r_sidebar1'), 'before_widget' => '<widget id="%1$s" name="%1$s" class="widget %2$s">', 'after_widget' => '</widget>', 'after_title' => '</title>', 'before_title' => '<title>', )); } add_action(&#39;widgets_init&#39;, &#39;left_sidebar&#39;); The id of this new sidebar is &#39;left&#39;. This adds it to the Appearance:Widgets&#39; screen in wp-admin where widgets can be added - see screenshot - but it now has to be added into the template so it can be seen. This is done in the file wp-content/themes/&lt;theme name&gt;/template-parts/layouts/post-before.php. This will have two lines of code: <div class="u-page-root"><div class="u-content-layout u-sheet"> &lt;div class&gt; *ETA: This doesn&#39;t seem to format correctly here: the second line should say div class=&quot;u-content&quot; inside tags.* You need to add the following code (this is the code Nicepage uses for the right widget with an id of &#39;primary&#39; but with the id changed to refer to the id of the new sidebar, left) ***between*** these two lines: <?php $sidebar_html = theme_sidebar(array( 'id' => 'left', 'template' => <<<WIDGET_TEMPLATE <div class="u-block u-indent-30 u-block-undefined-2"> <div class="u-block-container u-clearfix"> <h5 class="u-block-header u-text u-block-undefined-3">{block_header}</h5> <div class="u-block-content u-text u-block-undefined-4">{block_content}</div> </div> </div> WIDGET_TEMPLATE )); if ($sidebar_html): ?><aside class="u-indent-40 u-sidebar u-block-undefined-1"> <?php echo stylingDefaultControls($sidebar_html); ?> <style data-mode="XL"> .u-block-undefined-1 {flex-basis: 250px} .u-block-undefined-3 {font-size: 1.125rem; line-height: 2} .u-block-undefined-4 {font-size: 0.875rem; line-height: 2} .u-block-undefined-6 {font-size: 1.125rem; line-height: 2} .u-block-undefined-7 {font-size: 0.875rem; line-height: 2} .u-block-undefined-9 {font-size: 1.125rem; line-height: 2} .u-block-undefined-10 {font-size: 0.875rem; line-height: 2} <style data-mode="LG"></style> <style data-mode="MD"></style> <style data-mode="SM"></style> <style data-mode="XS"></style> &lt;?php else:?&gt;&lt;div class style&gt;&lt;/div&gt;&lt;?php endif;?&gt; This will add the sidebar to the Posts page. If you want to add it to the Blog page as well as or instead of the Posts page, add the same code to wp-content/themes/&lt;theme name&gt;/template-parts/layouts/blog-before.php in the same way, I&#39;ve not yet got round to working out how to change the width of the sidebar - they are currently identical - but I think that should be straightforward with some CSS. Note that this is hacking the template code and is probably frowned upon by Nicepage :-) but it gets round the problem until Nicepage can incorporate this feature. Also, it would probably be better to use a child theme but I&#39;ve not done that yet. If anyone sees any problems with doing this, please let me know!

Last edited 08 December 2019 by Alan Henness

Support Team
Support Team posted this 09 December 2019

Hi,

I think I read somewhere that Nicepage doesn't support vertical menus - is that correct and will that be added in the future?

Yes, we do not have the vertical menu control and this feature is not highly requested among our users. But it will be added to our wishlist.

...................................................
Sincerely,
Hella
Nicepage Support Team

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

Hi, >I think I read somewhere that Nicepage doesn't support vertical menus - is that correct and will that be added in the future? Yes, we do not have the vertical menu control and this feature is not highly requested among our users. But it will be added to our wishlist. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
Alan Henness
155 Posts
Alan Henness posted this 11 December 2019

The more I look into this, the more I see how limited Nicepage is compared to Artisteer.

Artisteer provided 13 sidebar/widget positions:

Primary
Secondary
Header
First Navigation
Second Navigation
First Top
Second Top
First Bottom
Second Bottom
First Footer
Second Footer
Third Footer
Fourth Footer

Each could have one of three styling options (block, article or no styling) - see attached.

But it looks like a theme in Nicepage has one and only one sidebar position. And no vertical menu.

This is a severe limitation, yet surely something fairly straightforward to add to the wishlist?

I would like to use Nicepage but its limitations as a replacement for Artisteer are too great at the moment.

The more I look into this, the more I see how limited Nicepage is compared to Artisteer. Artisteer provided [13 sidebar/widget positions][1]: Primary Secondary Header First Navigation Second Navigation First Top Second Top First Bottom Second Bottom First Footer Second Footer Third Footer Fourth Footer Each could have one of three styling options (block, article or no styling) - see attached. But it looks like a theme in Nicepage has one and only one sidebar position. And no vertical menu. This is a severe limitation, yet surely something fairly straightforward to add to the wishlist? I would like to use Nicepage but its limitations as a replacement for Artisteer are too great at the moment. [1]: http://www.artisteer.com/?p=help_wordpress
Support Team
Support Team posted this 11 December 2019

Hi,

Artisteer had static sidebars, Nicepage uses a different approach. You can add custom widget areas.
https://nicepage.com/doc/article/6461/

But we have added your request to our wishlist.

...................................................
Sincerely,
Hella
Nicepage Support Team

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

Hi, Artisteer had static sidebars, Nicepage uses a different approach. You can add custom widget areas. https://nicepage.com/doc/article/6461/ But we have added your request to our wishlist. ................................................... Sincerely, Hella 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 must log in or register to leave comments