I'm presuming I have to edit the footer through mysql, I haven't done this website, a colleague who has decided not to come back into work has put this together http://tandgwebdesign.co.uk/ashleafarmshop.co.uk/ and it's using the Journal 2 theme, however, usually I would edit the footer through the footer.tpl, or even in the admin panel, however I can't fathom a way of editing the "FREE DELIVERY ON ALL ORDERS OVER £80" and the few lines of text below.
Could anyone help me out and tell me how to edit this through MySQL? It's an OpenCart website, or is there any easier way to do it?
The footer is stored in a file called footer.tpl in the following folder:
catalog/view/theme/YOUR_THEME_NAME/template/common/footer.tpl
Check the footer's <h1> tag and see if you can edit the text there. If there's only a variable there, then I guess it stored in a language file (catalog/language/YOUR_LANGUAGE/common/footer.php).
Related
I'm editing a Drupal that was created by a company who didn't follow Drupal best practices with the idea that only them can edit the theme. I'm having some problems with the footer and I would like to know where is the file that contains the footer html code, because in the theme I have donwloaded (Boostrap Drupal7) it shows a footer rendered by <?php print render($page['footer']); ?>
The problem I have is that the footer has a block and I don't want it, but in appearance the block is not assigned to the footer, and I had tried to remove it.
Where is the code called by this function?
First, login as admin and make sure what theme is been used, check that, here (see what is the default theme)
/admin/appearance/
Once you know what is the default theme, go to the directory and find the following template: page.tpl.php
/sites/all/themes/theme_name/templates/page.tpl.php
Find the code:
But, remember that you can find searching any string using any IDE like phpstorm or sublime. It's very simple using it.
Well, some of Brute-force approaches:
Do a grep of footer content in your theme folder. (sites/all/themes/xyz)
OR
Do a grep of footer content in your module(sites/all/modules) directory. In case, the developer has put custom module or put custom code in some module.
OR
Do a grep in your drupal root folder except sites folder.
OR
If you are able to find in which region your footer is being shown, Look in every block in that region (under admin/structure/block). Click on edit of every block in that region. See, if you are able to find the footer content.
OR
You can see each view (admin/structure/views)
I already searched for solutions but have no idea where to put PHP code found on this site. No one shows how to edit CSS for the years list. I want to make a certain category to show all posts in gallery mode (grid) and to make it yearly filtered exactly like this one:
items in grid. Please excuse me but I really don't know how to explain it better than showing this example and I really don't want to make an ad or a link to this website. I have not found any other way.
Such things are usually accomplished by the use of an archieves.php file in the root of your wordpress theme directory.
So I would suggest just find this file and edit it to your needs: Edit the code to display it as a grid.
You can add your CSS inline but I would not recommend that. Just place your CSS inside one of the files that come with your theme. Mostly they are placed inside your themes directory in a folder called 'styles' or 'css'. Often theres a file especially for custom user styles. Of course you also can create your own one and reference it inside header.php or even import it in one central CSS file.
Here is a little link (did not look into it but maybe thats useful since you already have the CSS code to display items as grid):
Display all wp-posts
Actually i'm working on a wordpress website, which is related to school, i'm using universh WP theme which is purchased. I'm getting the below text as default:
Want create site? Find Free WordPress Themes and plugins.
See, i've marked those words. Actually its a dynamic page, i've checked the core code. It's only the
the_excerpt()
function. After that i don't have any idea, where it comes from. Also i've read this thread So please don't recommend that thread, its not working i've tried the way there mentioned.
P.S. Also the text will disappears when I login and try to edit the page.
What text editor You use ? Most easy way will be open folder with theme in some editor and search this string "Want create site? Find Free WordPress Themes and plugins." in all files - then You will know where they add it ... or You can check every file, because this string must be included somewhere, maybe in function.php they add some modification to the_excerpt();
I think when you ass content in post default editor then is not showing in the_expert() function
So you can add content in expert editor then after call the_expert() funtion
Check that your theme is not using the get_the_excerpt filter to prepend that phrase to all the excerpts.
Additional, if you only checked the files that load for that specific template, I would recommend that you run a search for that string for the entire theme. The source of the issue might stem from functions.php or even some JavaScript file.
Please update the core files or update version of your WordPress. Use Latest one.
I created a webpage in Standard HTML and CSS and everything looks / works exactly how I want it too.
Now I need it to appear as it is on a wordpress site (http://www.texasenergyessentials.com/). I already created a template page and can see it in the template select in the wordpress "add new page" window. I was hoping I could just select the template and leave the text editor blank but that doesn't seem to be the case. All I get is a completely un-formatted page that says welcome guest.
What is the easiest way to get https://gist.github.com/anonymous/8545681 to work on the aforementioned wordpress site? ?
Thanks!
P.S. Please don't link any codex files I just spent 2 hours digging around in them :(
Try to read and understand how http://codex.wordpress.org/The_Loop works
Install this theme https://code.google.com/p/wordpress-naked/ and try to work your way to the desired theme by editing theme files. That will be much easier.
Maybe the problem can be understood by reading the template hierarchy:
http://codex.wordpress.org/Template_Hierarchy
(especially check the visual overview)
If you name your file page-[insert-page-id-here].php Wordpress will use it for the page you've created. Get your page id by editing the page and looking it up in the url.
I just started using Magento, and to me, it seems like a big mess in there...
I'm looking to edit my home page that I got from a template. It looks great but I took out a bunch of useless static blocks inside of it and now I have wholes everywhere. Check the link:
http://goo.gl/v5uTx
What I don't seem to find is where is my actual page structure? I went into the admin and just found this for my home page:
<p>
{{widget type="flexiblewidget/list" column_count="3" limit_count="9"
if="em_feature_product=1" header="Favorite products" order_by="name asc"
template="flexiblewidget/featured.phtml"}}
</p>
Which is basically a tiny part of the page.
So the question is, where can I find the rest of my page content and structure (ie the slideshow, the top offers, ...) so that I can try to re-organise it to look like a website and not cheese?
Thanks.
Magento is different than most other CMS solutions. You may be used to seeing the raw HTML in the CMS page, or at least a good portion of it. However, Magento uses PHP to render blocks onto the page. It gets it's instructions from XML documents inside of your theme. If this is your first time working with Magento, it may be good to check out this post before you get too frustrated. It will walk you through some basics.
Most likely, the HTML for your slider and top offers are in files inside of your theme directory. Your theme directory will be at app/design/frontend/PACKAGE/THEME/ - your php and html will be in the template folder, and the XML instructions will be in the layout folder. The home page, like many other pages on your site are using a main template to load site-wide HTML and CSS. There are 4 of these main templates by default: 1 column, 2 columns with left sidebar, 2 columns with right sidebar, and 3 columns. These main templates can be found in the templates folder under the "page" directory. If you open one of these templates, you will find a line that looks like this:
<?php echo $this->getChildHtml('content') ?>
This line is asking the XML instructions for anything under the block named "content". That is most likely where the slider is being assigned. You will have to find the XML file this is being defined in. You may want to familiarize yourself with the layout folder and Magento's fallback hierarchy. Check out this post.
Hopefully this will help you out with the issues you're having with your page!