Adding a new homepage to Drupal - php

I'm just getting started with Drupal and have added my preffered modules. I have also added my front-end framework module - which is Foundation Zurb. Now I'd like to change the default blog-like structure of the site and would like to add a custom developed homepage. Been trying to put my head around this for over 3 days with no success. I followed the direction on the Drupal docs - which is a bit confusing and rigid but something I dont grasp is does the page--front.tpl.php actually end up being the home page? Also where would I put my css and other js scripts?
If this is the case then what would I need to do to add a navigation to this homepage which would then provide links to my site? Some mind opening guidance is welcome

You can set any node in any content type to be the home page. So first create your content type, then node in that type.
Then go to Confugration -> System -> Site information in admin menu and there you have Front page section. Add your page path to "Default front page" field and that's it - your page will become new home page.

You can also enable the default view "Frontpage" that has a path /frontpage. In this you can customize the sorting and filtering of what is being shown. Then visit the "Site information" page and set "/frontpage" as your default frontpage.

Related

Add a new page in OpenCart 3, Journal 3 theme and make it homepage

I have purchased an OpenCart 3, Journal 3 theme as suggested by a developer who promised to customize the website for me and he quit in the beginning. So I had customized it myself without any code knowledge. Now I wish to add a new page and make it as a homepage. Can can I do it with least coding knowledge?
If using Journal on OpenCart3 - just download demo data that you like the most and then edit the homepage.
In your journal theme archive you can find a folder DEMO DATA. There you will see 11 .sql files. Each file fore each specific template. Demonstration of each template here:
https://www.journal-theme.com/
To install demo data in your admin panel go to Jouranl - System - Import/Export. On the tab Import press Action and attach some of those .sql files. Done.
More about installing demo data here:
https://docs.journal-theme.com/docs/demos/demo
Now you can go to Journal - Modules - Title/Text, and edit homepage text, if there is some on you demo theme. Or add yours.
After adding Text - go to Journal - Layouts - Home and add your module with text to any place in Home layout.
UPDATED
In OpenCart you can't assign a role of a home page to any other page. There is only one Homepage. You have to configure homepage layout for the "first" page according to your task. But! For your "second" page - you can create custom layout and then - go to Catalog - Information, add new (or edit the existiong one), and on the editing page go to tab Design, and there in Layout Override find your custom layout. Now, if you are using SEO URL (Can turn on in System - Settings, tab Server - SEO URLs) - open tab SEO and add your Keyword to this an Information page. Now, the link to this info page will be like https://yourwebsite.com/keyword, and the layout of this page will be your custom layout. Use it for "second" page. But Homepage is Homepage, we can do nothing about it.

How to change the layout of the default archive page in Wordpress?

I manage the website www.frijolichtreclame.nl and I've been working on making the URLs of the portfolio page and the projects beneath it the same for SEO purposes:
.nl/projects as the page where everything is combined, .nl/projects/project-name for each specific project.
But the layout on the .nl/projects page is not what I want it to be. Now I want to change that, but the default WordPress formatting always overrules my own wishes. Is there a way to change the layout to whatever I want? The website is made using Divi, but the Divi developers say these changes cannot be done.
Hope you can help me out!

Drupal - how to hide headbar Menu in a page?

my website is : https://www.edqm.eu/
I need to create a new page, but I want a page without headbar menu.
Is it possible ?
If Yes, How is it possible to do it ?
the website is built with Drupal 7.
I'm not expert in dev and in Drupal.
Thank you for your help.
it should be possible and depending on your site setup, it can be even pretty simple. You have to find the menu block in /admin/structure/blocks and go to configure on the block, there you should see visibility settings and you can filter out your page.
Hope this helps.
Your header menu can be in:
Some block - just go to Structure -> Blocks from admin menu, find that block, click "Configure" link and in "Visibility settings" hide it by some criteria that is most suitable for your case (content type, page path..). If you have hard time finding which block is that use some inspection tool like Firebug or similar, to see block id. But if site is made well, when you are logged in as admin you'll have that "Configure" gear icon when hovering the block.
Menu can be part of some template file, most likely page template (/sites/all/themes/your_theme/templates/page.tpl.php). If that's the case then you can clone the template file and name the clone following the special naming convention so just the page you want to change will use that template. Then you can modify the clone and remove part that generates the menu. Check out this page for theming names suggestions:
https://www.drupal.org/docs/7/theming/template-theme-hook-suggestions

Wordpress page not showing with correct template

I have created a new page and allocated to default template which is same as other pages but it shows up with broken template with comment (which I want to remove from this page) in it and I cannot find where it's coming from i the actual template folder. I have searched page.php and others but had no luck.
The settings are exactly the same as other pages and I have no idea why it's doing this.
Is there somewhere I can check to resolve this issue?
If you need to disable comments, you can do that within the page editor in the backend. It should be below the content area.
Regarding setting a page template, If multiple page templates are available for you to use, you choose which page template each page uses on the right side of the page editor underneath the Publishing options.

how to make drupal pages into menus and submenus like administrator menu

I'am new to Drupal, i just want to create a website which contains pages like about us, contact us and other static information that may be changed after a long time.
Now i can create the pages and sub pages to main pages. The links are displaying on the top of the logo and the sub pages were showing on the side of the main page.
i installed the dhtml_menu module but not working.
are there any changes required to dhtml_menu module to make work for pages?
or
i need to use any other module?
please help me to solve this issue
Thanks.
Your question is pretty confusing. If you just want to display the pages in a tree just like the administration menu (which seems to be what you're asking), then you don't need any extra modules.
Just create your pages and put them all in the primary menu. Then, once your pages are created add the Primary links block (in Administer, Blocks) anywhere you want. That block will display the navigation tree of your pages, just like the administrator menu does.
edit
Oh, so you want the drop down menus? Then you don't want dhtml_menu (which will only prevent unneccessary page loading when you open pages), but need something like simplemenu. Create your primary links, goto Administer, Site Configuration, SimpleMenu and set the "Menu" setting to "< Primary links >". That will display a drop down menu bar to navigate through your site...
First i need to say thanks to wimvds. "Thankyou wimvds for your edit it take me to find more modules and themes".
found the solution in a theme "admire_grunge" the drop down menu needs to be defined in the themes it self.
found some more themes that work like this.
Thanks.

Categories