Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML code on pages
#9
dangerin Wrote:Can be that there is not html code on a template ?
Yes, you can have a template.php file with no html: it means that template.php will have a lot of php statements such as include('header.php') and include('footer.php') (in Innovation, for example). The included Innovation theme is quite a difficult one to learn with, because almost all of the page content to be shown in the browser is in other files (header.php, footer.php, ... ) or comes from the CMS (get_page_content(), ... ). If you have a look at the template.php file in the Cardinal theme folder, it is much easier to see the html page structure.

Google code may belong in either the <head> section or at the end of the <body> section (just before </body>, perhaps) depending on which Google services you are using.

You can edit the theme files in the admin backend: Theme->Edit Theme opens a text editor; the drop-down menus at the top of the window allow you to select the theme and the file within the theme.

Example, to add Google code to the bottom of every page on the site, in Innovation:
  • Go to Theme->Edit Theme in the admin panel
  • Select 'Innovation' from the left menu list
  • Select 'footer.php' from the right menu list
  • Click the 'Edit' button and the file will be shown in the editing window
  • Almost at the end of the text are two lines, </body> and </html>. These are at the end of the html file for the browser
  • Add your Google code just above the </body> line and just below the </footer> line
  • Click the 'Save Changes' button
  • Done

If you need to put the code in the html <head> section, you must edit the Innovation header.php file. It should probably go just above the line with the </head> tag.

Note: you must check to see where in the page Google recommends that you place their code.
--
Nick.
Reply


Messages In This Thread
HTML code on pages - by dangerin - 2011-03-22, 19:50:08
HTML code on pages - by yojoe - 2011-03-22, 20:34:01
HTML code on pages - by dangerin - 2011-03-22, 21:34:12
HTML code on pages - by polyfragmented - 2011-03-22, 21:46:45
HTML code on pages - by dangerin - 2011-03-22, 22:24:37
HTML code on pages - by dangerin - 2011-03-22, 22:36:12
HTML code on pages - by polyfragmented - 2011-03-22, 22:36:42
HTML code on pages - by dangerin - 2011-03-22, 22:57:20
HTML code on pages - by hameau - 2011-03-22, 23:13:52
HTML code on pages - by dangerin - 2011-03-22, 23:55:50



Users browsing this thread: 2 Guest(s)