Custom wordpress theme template page is not public - wordpress

I am new to wordpress. I have made a custom wordpress theme and have added a few page templates to it, that I have used on different pages. Now the issue is that When I deploy the website on the server the the pages are not public (i.e. the user is asked to enter the username and password before he/she can visit the page). Although I have made them public in the edit page section, but they are still not public. When I change the theme and use any of the default WP themes the pages are public. Need some help in this regard.
Thanks.

If it works with the default theme and not yours, its definitely a theme issue, do you have a link to your site or a link to the theme you are using?

Related

Wordpress: Changing the 'Password Protected' page

I downloaded the WordPress plugin 'Password Protected' for my WordPress site, which adds a password to my webpage so no one can access the material in there without logging in first. It works great and does exactly what I want it to do. My issue is that I need to customize it (change the WordPress logo and add some text). I found multiple guides on how to do this but none that could be applied in my case.
this guide:
https://codex.wordpress.org/Using_Password_Protection#Customize_the_Protected_Text
Tells me to edit the functions.php file. However, I cannot access it from the WordPress admin interface.
this guide:
https://www.binaryturf.com/website-design/business/how-to-edit-functions-php-in-wordpress/
Tell me that it should be available by Apperance -> Editor
but there's no 'Editor' under Apperance for me.
Does anyone how I can edit the login-page for Password Protect, or any other plugin I could use that allows me to change logo and text for the login page (for free)? Or how I can edit the functions.php file in WordPress admin?
Thanks!

Wordpress cannot find a link

I have a link in wordpress website. However, I cannot find the link to edit. I try to find it in pages and in template. I tried to edit a page but the page is empty. So where does wordpress placed my link? Is it in database or somewhere?
Thanks
Homepage template can be index.php, home.php or front-page.php located in your theme's folder.
Find out which page is being loaded as your homepage in Settings -> Reading under Front page displays.
All the content in WordPress should also be accessible from within your Admin Panel. You have to find that out yourself. Only people who have access to the Admin Panel knows about that. Ask the person who was responsible for this if you must.

Modifying custom Wordpress pages

Sorry if this question is too basic (It would be great if someone could recommend me on a good resource/tutorial for starting up with wordpress development)
I am new to wordpress development. And I work on a Mac.
I downloaded MAMP, installed wordpress, and installed a custom theme which I bought online.
So far, I've been using the wordpress wp-admin interface to customize the theme.
I created a new Page called "myPage". I'm interested in making some design changes to myPage but the wp-admin tool is limited and I realized I have to start looking/modifying the code.
I'm using Netbeans, and created a new project of my local wordpress folder which contains the wp-admin, wp-content, wp-include folders.
However, I am not sure where in the code to find the page I created "myPage", in order to modify it.
I ran a search on all the code but I don't find any mention of it.
I guess my custom page is saved elsewhere? in the database?
Thanks!
Drill down through wp-content > themes > to your theme's folder. Inside there you will find a file called page.php. That is your default page template. To double check this is the page being used, in your wordpress backend, edit the page and on the right hand side in the 'page attributes' panel, you will see a dropdown under 'Template'. You're purchased theme may have many templates, so that is how you can tell which one is being used.
Note: Creating a page inside of the wordpress backend does not actually create a new page file for that page.
Hope this helps.
Yea, you can find your page in DB, check out link for more info.
To access your database, you need to go to url http://localhost/phpMyAdmin/ if everything is set right; or your local IP/phpMyAdmin/ if host alias is not set.
EDITED
If you are looking for file, you should look in wpfolder/wp-content/themes/some-theme/ and now ether page.php or content-page.php I am not sure.

Automatically add more pages on wordpress multisite install

I want to make 5 pages with a navigation on wordpress multisite.
That means when a new user registers for a new site, he/she will get a new site with 5 default pages with a navigation menu. Can anyone help?
I found it at last. :)
It is in
wp-admin/includes/upgrade.php
function name
wp_install_defaults();
overwrite this function to generate custom posts and pages on wp install.

Magento - Integrating Wordpress into Magento for the homepage

I currently have a Magento store where I'm using a CMS page as the homepage. I want to integrate my wordpress blog (hosted on the same server) into this CMS page. It would show the latest blog post and preferably have the comment function available on the front page. The first thing I considered was using the Wordpress Loop on the Magento CMS page, but it doesn't seem like it allows PHP.
One other thought I had was to create the homepage using modules or blocks. To be honest, I've never created a module or block so I'm not all that familiar with what is involved. The CMS page that I had created is simply an image slider/carousel (nivo-slider) and some photos with links. None of the content actually needs to be done with CMS, it just needs to be presented within my Magento theme/framework. All homepage updates will be handled by myself, so I can bypass the CMS system all together and just update modules if it turns out that the modules solution will allow me to have both the Wordpress blog and nivo-slider on the same page.
Any thoughts?
One thing you can try is setting wordpress as the main site and style it to match your magento styling. Then the visitor will have a streamlined experience from a UI standpoint. One gotcha would be if you want comments open on Wordpress then you'd have 2 accounts you'd have to reconcile for wordpress and magento.
I found the solution at Part 2 of the following link:
http://addoa.com/blog/easy-wordpress-and-magento-integration
Here's a quick summary of the steps (for a full explanation, click the link above):
1) Create a bare-bones WordPress theme file that skips all of the styles, header, and footer and just displays content.
2) Create a page in WordPress that uses your new bare-bones template.
3) Create a template file in Magento to embed your newly created WordPress page into a Magento page.
4) Place the block based on your new template on the Magento CMS page you want the blog content to display on
The FishPig extension now supports this functionality so you achieve this by following these steps:
Upgrade to the latest version of FishPig's WordPress Integration
Login to your Magento Admin and go to WordPress > Settings Blog / Plugins
Find the Layout option and set 'Blog as Magento Homepage' to Yes
Save the page and voila, you have it: WordPress as your Magento homepage using your Magento theme in under 2 minutes
You will be wanting the Fishpig integration:
http://www.magentocommerce.com/magento-connect/fishpig/extension/3958/fishpig_wordpress_integration
Not only is it free, it is also actively maintained.
You can also do an Apache redirect for the root/home page to a wordpress page of your choosing. In that way you don't have to have the problem of adding something to the Magento homepage and maybe have something fancy in Wordpress.
hopefully i've understood your question!
the following article may be of help to you (it outlines how to use the fishpig extension and to pull out the latest posts as part of a magento block on your homepage):
adding recent posts to magento homepage
You can also use blog extension of magento.
You can get it free form magento site http://www.magentocommerce.com/magento-connect/aheadWorks/extension/1516/blog-extension-by-aheadworks
Thanks

Resources