can not find content folder in prestrashop - php

I am new in prestrashop. I am working on http://www.how2brich.com
website. There is about menu. I have putted content of this menu through admin but i want to change some data inside the code.
the link is showing http://how2brich.com/content/4-about-us this.
I am not content folder and 4-about-us page for change code.
Any one plz help where to get about-us page content.

To change content of this page go to Preferences >> CMS and if you want to change the code go to "/themes/yourthemename/cms.tpl" but keep in mind it will change all CMS pages code so add a condition(like if , else) to add specific code for this page.

To get content editor "about-us" page please enter Back-Office. Then Preferences->CMS. And then please click on button "edit" on the "about-us" line.
If you need to change the code (template) of the cms pages please find the template on the path "themes/your_theme/cms.tpl"

Related

Wordpress. The template tab of a page doesn't appear

In admin panel of Wordpress I have created a new page named "Home". In a theme folder I created file with name "home.php" where wrote "<?php /* * Template name: home */". But in page edit the "template" tab doesn't appear even after hard reload. I have no idea what's the problem. Could anyone help me please?
I tried to do hard reload many times. Tried firstly to create template file and then the page and vise versa
I think the problem is home.php is a reserved template name, please check, you'll see home.php as a fallback for front pages and index
Try changing the file name to template-home.phpor something different, that should work

How to make Wordpress Custom page

i m a newbie to wordpress. I have started theme development and encountered these problems. I think these kind of problem does have a solution, but i m not able to find it out.
I m trying to make a custom page. Uptill now i have made header, footer and main index page.
I see that whenever my theme is activated, I see these default index page, with header and footer assign to it.
I have also made some cutom about us , contact us pages using the Add Pages Functionality of wordpress.
My Problem:
1.Now I m trying to make custom product page where I will have more than 100 images on that pages, and then i can change the images, add the images and description and the link url in future. I have made some html code and put it in the text Tab . I can also see the images on the frontend of the Custom page. But my template breaks. Images goes up and description goes far below.
Also i wanted to add fancybox to all the images which are goin to be replaced or added. But again my template breaks.
So can we make custom.php page and do some coding or anything which you feel is the right way of doing it, Please let me know.
Firstly create product.php page in templates folder using below code on top
<?php
/*
Template Name: My Product Page
*/
get_header();
// write your code here
get_footer();
Then, assign the above template to the page in admin.
Then, that page you can call in menu.
For more detail, check here :- http://codex.wordpress.org/Page_Templates
Actually you don't really need to create a custom template for this unless if you are planing to use that same template on another page.
If your page name is products , just create a file called page-products.php in your theme root. and write your code inside that page.
If your planing to develop themes first be comfirtable with wp template hierarchy.
http://codex.wordpress.org/Template_Hierarchy

How do i edit home page of magento

Hello guys can please anyone suggest me how do i edit the black marked tabs in image through code,(the path for the code of this tabs)
First please check from where the content of the home is come from.
you can you template path for it.
if its comes from CMS Page you can edit form the admin CMS page.
if its a comes from Static block you can change it from the CMS blocks in admin.
and if its a hardcode in phtml file or any xyz.phtml file call in home then you have to edit that xyz.phtml file.

Joomla link to category list

Hi all, I have encountered a problem with Joomla.
There is a custom html module with link inside. Link goes to menu item, which is category list. As soon as I understand, I have to copy the following code from the link attribute of the menu item and paste it inside href.
index.php?option=com_content&view=category&id=12
But it doesn't work this way. The 404 Error Page appears.
How to make this link work properly?
Thank you.
Create a menu item linking to the category list, then when you preview it in the frontend, right click the menu item and click "Copy Link Location".
Then paste the link within the href="" and remove the http://example.com bit so it starts with index.php?com_content......
The reason why I say this is because the url you are using must be incorrect.
Hope this helps.

WordPress how to add another page?

I am using the newest version of WordPress (version 2.8.4)
I'm wondering how I would add an additional page.
I have a navigation that looks something like this.
home | about us | contact us | ... etc.
I read somewhere to go to pages -> add new but it forces me to put the content within WordPress rather than edit a PHP file itself.
How would I be able to enter PHP in it? Is there something else I can do?
For example if you want to add home, "About us" pages:
You have to create template pages for this.
For this you need 3 files: header.php, index.php and footer.php.
If you are using an existing theme, you will find these three files in your theme folder itself.
For creating your home page, copy the following into your index.php file:
<?php get_header(); ?>
<body>
/* include whatever u want in ur body tag */
<?php get_footer(); ?>
index.php will be automatically assigned to home page.
For the "about us" page, create a file named aboutus.php (whatever name you want with .php
extension) and copy and paste this code.
<?php
/**
* Template Name: aboutus //don't forget to add this name according to ur page name
*
* Selectable from a dropdown menu on the edit page screen.
*/
?>
<?php get_header(); ?>
<body>
/* whatever u want in ur body tag */
<?php get_footer(); ?>
Then go to dashboard of your website or blog, there click pages->Add new,
give the Title as Home. Then click publish button on right side of the (Add new page) window.
Then, on left side of the screen, again click pages->add new, then enter title as "about us"
and then, in right side of this window, you will see a dropdown box named template, click the dropdown and select "about us" from it. Then click publish button.
Now we are going to create menus to appear in the website or blog. For this,
On left side of window,click Appearence->Menus.
On left side down of window you will see Pages heading, in that click Most
Recent, check home, aboutus pages and click Add to Menu button.
Then, the selected pages are displayed on right side and click Save Menu button on right corner.
Then, on left top corner, click your website or blog name to view your website with the two menus with their pages.
Create a Template in your theme folder, then set the page to use that.
If you want to do it without creating a Template, you may be able to use a plugin such as Exec-PHP, however this brings with it a bunch of possible security issues.
Why do you want a content page outside of Wordpress and outside of the WP loop? You still need to use a template and WP includes or you'll run into permalink problems.
You can make a WP page but exclude it from navigation, if that's what you're after, with something like Exclude Pages.
I'm a bit confused about what you're asking, but if what you're looking for is a way to have a link in your WordPress navigation that goes to a page you create outside of WordPress, you can use this plugin:
http://wordpress.org/extend/plugins/page-links-to/
If this and the other answers aren't any help, you might want to edit your question to clarify what you're trying to do with the php.
Good luck!

Categories