Drupal 7 front page issue. - drupal

I have a drupal installation, which shows 2 different page when I enter the full domain (www.example.com ) and when I enter the full domain with /node ( www.example.com/node ).
When I put a new post, it shows up in "/node" url ( www.example.com/node ) but not when I enter the full domain.
When I login, admin bar also not visible for homepage and it's visible in every other page.

In drupal there is theme template concept, for front-page in your current theme someone might have written code/rule to hide (admin bar) and other dynamic stuffs.
Solution !
Under your current theme check for page--front.tpl and within the file, check whether there is some code to override the admin bar and others things.
Reffer below URL for template information,
https://drupal.org/node/171194

Related

How to change the "/portfolio" slug from Wordpress?

My wordpress site has a portfolio page by itself, and the link is www.example.com/portfolio. I tried to find the specific page (with this url), but i couldn't find. So my purpose is to create a portfolio page, on my wordpress site and have the specific url "www.example.com/portfolio".
That where i did, to create a portfolio page, was to create a page and change the slug to "www.example.com/portfolio", but when i hit this url, show me the portfolio page, that has the site by itself and not my page.
So my question is, can i change the name of the existing url "/portfolio" and if yes, how (can i change it from my wordpress files), to appear the page i created and not existing page has the site by itself?
Thank you in advance!
Your WordPress page slugs aren't configured from within the codebase; instead if you go to the relevant page whilst in the admin dashboard, on the right hand side will be some config options - here is where you're able to change the slug.
How to change your slugs using permalinks WordPress Docs
It means you have a custom post type "portfolio". You need to unregister it. Put this code in the functions.php file of your active theme and then create a new page with a "portfolio" name(title).
if( !function_exists( 'cus_unregister_post_type' ) ) {
function cus_unregister_post_type(){
unregister_post_type( 'portfolio' );
}
}
add_action('init','cus_unregister_post_type');
Amin panel, go to pages... search for the page portfolio... there is no physical presence like portfolio.php... hope this helps
You just use this plugin and this plugin will help you.
Plugin: https://wordpress.org/plugins/custom-permalinks/

Wordpress template without blog pages

I chose Wordpress for my last project but I have a question. I'll use Pages so the client is able to change the content himself. For the moment there are no Post or blog in it. Is it possible to run Wordpess without a blog? It'll be a blog in a future but not now. Thanks.
Absolutely you can have a WordPress site without a blog. You just need to do a couple of things in the admin.
First you need to create 2 pages: a static 'home' page, and a 'blog index' page. The home page is what will be displayed when a visitor comes to the site. The blog index page is just a blank page, with a title you can remember.
Next, in Settings > Reading, select Front page displays a 'static page', then set 'Front page:' to the home page you made, and 'Posts page:' to the blog index page you made.
Yes, for sure you can do this.
Just do the following:
In your admin backend click on Settings -> Reading and set "A Static Page"
Go to Appearance and build a custom menu and add there your pages to a active menu.
Disable all widgets which link to posts.
In fact you need only the first step, but with the second you allow users to navigate on your site. To make the UX better, just add a plugin like Map Categories to Pages to add a category widget or something in this way, to let people browse your site more nicely.

Main Page Login also logs user into Wordpress section

We have a site with a members-only section and WordPress in a subdirectory. Some of the members-only pages, forms, etc. are outside of WP. We created a Member Login form on our homepage using Dreamweaver 5.5. Is there a way to have WordPress accept that main login so that a member doesn't need to login again when going to a WP member-only page? Thanks for any help you can be in pointing me in the right direction. I know just enough PHP to be dangerous. Let me know if you would like to see the DW login code.
Yes, you are talking about creating your own custom template for a Wordpress page.
You can use the page you generated from Dreamweaver by renaming its extension to .php, unless it already is. Move it to the /wp-content/themes/yourtheme folder, where yourtheme is your currently active theme. On the top of the template, add these lines:
<?php
//
// Template Name: Login Form
//
?>
Go to Wordpress Dashboard > Pages > Add New. Add a page called 'Login' or whatever you need, select 'Login Form' as the Template under Page attributes, and you Publish.
Reference: http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

How do I create a static page and redirect to a WordPress blog without moving files?

I have WordPress installed in the main directory. I want to create a static page so that when the person clicks "click here". It goes to the wordpress blog.
I have tried this two ways thus far.
Created a custom page in wordpress and then had it set as a static page. Problem when someone clicked the linked it redirected back to the splash page.
Put the files in the main directory. Problem the person would have to go to www.example.com/splash.html to get there. I tried creating a htaccess but host gator will not let me.
edit: I figured it out using
<?php
if( (strpos($_SERVER['HTTP_REFERER'], get_bloginfo('home')) === false) && !$_SERVER['QUERY_STRING']) :
?>
What is the purpose of the splash page if its just one link on it?
One option is to create your page within wordpress and set the frontpage to show as a static page (under settings > reading). On that page link to your /blog/ category or to a custom template page that displays all your blog posts.
If you want to have the same design as the page currently has, you can make a new template out of you current index.php file.
http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
The simple option is to use a plugin.
http://cochinoman.com/2009/02/16/wordpress-plugin-for-splash-screen/
Gives you the option to Continue on or go back.

Drupal site front page

I've assigned a page from Pages module as home page. And now the main menu shows the menu item called 'Main' which leads to '/main' page. How can I change that to make the 'Main' menu item link to really '/' of the site ?
Updated:
Sorry if it is not clear, the 'page' i mean is really a page - ( Site building -> Pages ).
If you go to the Site Information section of your admin panel, you can set a specific node to show up as the front page. I would use the node/XX way of referencing your node, since the alias you gave the node ("main") may change. Once you've done that, you can change your menu link to go to <front>, which will automatically send it to whatever node is designated as the front page.
Got it.
If I mark a 'page' as to be the front page of the site, and it has a menu item, this menu item leads to something like '/main', but not the '/'. To fix it I removed any menu reference on the page properties and then in the menu editor add the required link with the path ''.
Thanks for the response!
On top of what everyone else has said, can I just let you know of a mistake that I made.
I had pathauto switched on, but it was set to delete old path and create a new path if the title of a page changed.
And you know what, this happened to my home page, so where the page I'd over ridden and called homepage, was now called welcometothisthatortheother (if you know what I mean).
My advise if your using pathauto is to use the nid value ( node/11 ) or make sure unlike me, that you only create new paths on page inserts rather than updates.

Resources