Magento Forum - UK Magento Forum (Unofficial)

An unofficial but dedicated Magento Forum for Magento Users, Designers and Developers

Changing meta info through ftp

A forum to discuss Magento related SEO issues and for SEO professionals working on Magento

Changing meta info through ftp

Postby Mark » Thu Apr 15, 2010 11:15 am

Where is the meta info controlled through using an ftp client and not through the magento backend?
Mark
 
Posts: 65
Joined: Sat Sep 19, 2009 10:53 pm
Location: UK


Re: Changing meta info through ftp

Postby Mark » Fri Apr 16, 2010 9:17 am

LOL, sorry i should probably re-word that.

Is it possible to alter meta tags from a file/files, for a single page in Magento?

It's just that when I attempt to alter the meta tags for the homepage through the Magento CMS section, it has no effect, almost as if its being overwritten or controlled elsewhere.
Mark
 
Posts: 65
Joined: Sat Sep 19, 2009 10:53 pm
Location: UK

Re: Changing meta info through ftp

Postby Mark » Fri Apr 16, 2010 9:49 am

FINALLY!

This is what I have been looking for, in:
app\code\core\Mage\Page\Block\Html\Head.php

Code: Select all

public function getTitle
()
    {
        if (empty($this->_data['title'])) {
            $this->_data['title'] = $this->getDefaultTitle();
        }
        if($this->fpseo_isHome())
        {$this->_data['title'] = "~~~~~~TITLE HERE~~~~~";}
        return htmlspecialchars(html_entity_decode($this->_data['title'], ENT_QUOTES, 'UTF-8'));
    }

    public function getDefaultTitle()
    {
        return Mage::getStoreConfig('design/head/default_title');
    }
 


I have no idea why this has been altered this way, but hey...
Mark
 
Posts: 65
Joined: Sat Sep 19, 2009 10:53 pm
Location: UK


Re: Changing meta info through ftp

Postby rickypounting » Thu Dec 08, 2011 12:56 pm

for quality CMS it is the best way to use above technique .that is really helpful as runtime change in tags.
rickypounting
 
Posts: 4
Joined: Fri Dec 02, 2011 5:09 am

Re: Changing meta info through ftp

Postby brucekenway » Wed Oct 21, 2015 3:17 am

Always have in mind some important things:

HTML must be semantic. Create your HTML structure like it meaning not it appearance.

Use CSS to all positioning. Remember that float, position, z-index and clear are your friends.

Avoid specific browser hacks. In fact, almost all can be done exactly for IE9, Chrome, Firefox, Opera and Safari. Near we have IE8 (only without CSS3 things). Your hard way will be IE7, but it isn't so much away from IE8.

Choose your browsers by audience and graphics like this. I don't care about IE6 anymore and I'm stoping to care about IE7 too.

Using table isn't a crime. Tables was created to tabular data, i.e. grids, lists with more than 2 columns, etc.

Using table is a crime. Don't use it for your layout structure, like menus, headers, footers, etc.

Using div also can be a crime. "Tableless" doesn't means "Divmore". Your markup must be clean and semantic ever. Dozens of divs are so bad as tables could be.

Read W3C Specs and understand the web standards like you understand your own name.
User avatar
brucekenway
 
Posts: 21
Joined: Wed Oct 21, 2015 2:39 am
Location: Dallas, TX


Return to Magento SEO

cron