How to create a static page on Ghost Blog? - ghost-blog

I created a page file named "page-timemachine.hbs" on my custom theme's root directory followed a tutorial, and I have added a item on my blog "/ghost/settings/navigation/",like this
add new navigation
But when I visit the link, I got a "404".Did I made anything wrong? thx

You also need to add the page in the admin GUI. You do that by doing the following (assuming you are on a fairly recent version of Ghost):
Add a new post
Click on Post Settings on the top right of the interface.
Click the checkbox Turn this post into a static page
After that is done you can simply edit the post as usual and after you've published it, it should appear instead of your 404-error.

Related

How to create a static page where to add posts in wordpress?

I am new with Wordpress and I need some help.
I have added this theme to my website (theam demo link) and I am trying to create a page where I can add new post and every post must be on the same page and with a read more button (like home page from the link).
Go to Settings > Reading and under "Front page displays" select "Your latest posts."
You should go to the WordPress site and read the getting started as this is a basic setting. Also, read the documentation that comes from the theme developer. It will have further information as well.
In your WordPress admin,
go to Pages » Add New to create a new page Like Blog
go to Settings » Reading
under the Front page displays option choose A static page.
under the Blog page displays option choose A Blog page.
Hello,
You should create a child theme where you can enter a custom template where you can enter the custom loop you need to have the posts you want to show.
Then you will need to create a page and activate it with the custom
template you made.
Hope that can help, however there are a lot of other ways to achieve what you want and this one is not the most beginner friendly but i think it is the most developer friendly, so i think you should at least check it out.
install the plugin visual composer it will help you a lot

Put categories on PAGE url wordpress

Ok, here is the thing I have already added the categories to the pages (with the help of a plug-in, it's called Add category to pages) and so now I want to change the URL to display the categories (that is to say I want my pages to have this estructure: mysite.com/%categories%/%page_name% right now it has his structure: mysite.com/%page_name%), I have tried to google it but I can't find a straight answer. So if anyone has some resources (tutorials, articles) or some idea (if it's not to much to ask with code examples) on how to achieve this it would be fantastic. (And believe me, I'm asking as my last resource)
you can do it easily with "Page Parent" option available in WordPress.
Steps To create a subpage
Go to Administration > Pages > Add New screen.
In the right menu, click the “Page Parent/No Parent” drop-down/page attribute widget. The drop-down menu contains a list of all the Pages already created for your website.
Select the appropriate parent page from the drop-down menu to make the current Page a child Page.
Add content to the subpage.
Click Publish when ready.
Output - https://example.com/asia/india/
More Info. - Wordpress Subpage Permalink
well you can do this for categories and products from permalink setting, but if you want to manipulate the page url according to yourself then you need to create an blank page with the prescribed name whichever you want to insert, i.e, if you want to insert amazon within the url then create an url with name of amazon, and put the other url's under this parent page.
This way your url will look like
http://example.com/amazon/page_name
Unable to post as comment so directly posting it in an answer, in WordPress you can have custom URL. After you logged I'm as admin under dashboard you have general settings where you can put custom URL's like http://example.com/%caregory%/page_name
For more reference also checkhttp://codex.wordpress.org/Changing_The_Site_URL
I don't know if you tried this but after you login as admin, under Dashboard>>Settings>>Permalinks>>Custom Structure.
Let me know if you have already tried that.

How can I hard coded comments area to be shown in particular pages in wordpress?

In my sites I use static page as a front page, and I did some other static pages to show some special static content (and embedded object) but this page sin particular I want to have the comment area shows.
My question is: how to enable comments -preferred hard code- in particular pages? at least having the same category?
I am using wordpress 4.1 and Avada Theme.
Well you can disable the comments on over all website by going to settings discussion and then uncheck the box that says, allow people to comment on new articles. This will remove all the comments on new pages and posts (starting from now). Now when you create a new page/post click on the button on the top that says "screen options". Check the box that says "discussion". Now you will have a new field in your post from where you can enable/disable the posts individually.
If you want to do it through the code, one way would be to create separate files for each page e.g page-contact.php, So when someone goes to the contact page, this file will be served, it can be a clone of page.php and just needs the comment part removed. Another way would be to goto page.php and wrap the comments code with a condition like
if(is_page('contact') || is_page('about')){
// code to show comments. Comments will be shown on contact and about page
}

Make static pages and NOT appear as blog

I have just installed wordpress, and finally found out how to fix the issue that wordpress works as a blog as default. This was not what I wanted, since I want to create a site. I changed the front page to be static. Now when I create a new page, I want this to be a static page too, and not a blog. A new page keeps appearing as a blog. How can I change this?
Use Template page for it.
You can check here :- http://codex.wordpress.org/Page_Templates

Wordpress custom posts page coming blank

I am new to wordpress
I created a theme and created new static page as home page
Now wanted to add blog page and for this I created another page, named it as blog and then marked it as "posts page" in settings >> reading
If I don't do this then I can see header and footer of the page but if I do the above then it shows blank page without anything
Why it shows completely blank page?
How can I relate posts with it?
On doing
define('WP_DEBUG', true);
I get errors like below
Deprecated: Assigning the return value of new by reference is deprecated in D:\wamp\www\project\wp-content\plugins\exec-php\exec-php.php on line 22
And after removing these errors, still its blank page
Should I use any other plugin?
All website is complete just blog page needs to be created
You can try to change your name from blog to other name such as article, blogs, journal... which related to the intention of your site because there's probably a conflict happen in naming convention of Wordpress or your theme here.

Resources