Jump to content

Title and meta tag issues


hashstar

Recommended Posts

Hi there,

 

Please forgive my ignorance as i am a noob.

 

I have a website and the page title, keywords and description are taken from this .conf file:

 

 

base = /home/websitem/public_html/worms/

url = http://www.websitemakeover.co.za/worms/

 

host = localhost

user = websitem_worms

pass = *****

data = websitem_worms

 

subject = The Organic Grow Shop

shop_email = do-not-reply@organicgrowshop.co.uk

shop_name = The Organic Grow Shop

domain = websitemakeover.co.uk

admin_email = ron@rondarby.com

subjectToClient = Your Purchase from The Organic Grow Shop

subjectToAdmin = A purchase was made on the website

 

pay_email = ron_1320155944_biz@rondarby.com

pay_currency = GBP

#pay_url = https://www.paypal.com/cgi-bin/webscr

pay_url = https://www.sandbox.paypal.com/cgi-bin/webscr

 

[home]

title = Buy worm castings, perlite, vermiculite, clay pebbles

keywords = Worm castings, perlite, guano, organic gardening, hydroponic growing media, soil mixes, plagron, bio bizz, all-mix, organic fertilisers, organic nutrients, hydroponics.

description = We sell organic fertilisers, worm castings, guano, perlite, vermiculite, clay pebbles, soil enhancers and conditioners to make your own soil mixes

 

[about]

title = About Us

keywords = Worm castings, perlite, guano, organic gardening, hydroponic growing media, soil mixes, plagron, bio bizz, all-mix, organic fertilisers, organic nutrients, hydroponics.

description = We sell organic fertilisers, worm castings, guano, perlite, vermiculite, clay pebbles, soil enhancers and conditioners to make your own soil mixes

 

[contact]

title = Contact Us

keywords = Worm castings, perlite, guano, organic gardening, hydroponic growing media, soil mixes, plagron, bio bizz, all-mix, organic fertilisers, organic nutrients, hydroponics.

description = Contact The Organic Grow Shop here. An organic grow shop representative will be in touch shortly.

 

[casting]

title = Worm Castings - Buy worm castings, organic soil mix at The Organic Grow Shop. Made in the UK!

Keywords = Worm castings, worm tea, worm poop for hydroponics, soil mixes, plagron bat mix, organic fertiliser, vermicompost, worm castings uk, organic soil mix cannabis, organic soil, worm cast, organic soil mix, soil mixes, organic soils, natural fertilisers.

description = Worm castings - mmm, wormy goodness. We've teamed up with our local worm farm to bring your this fantastic 100% natural organic plant fertilser and soil conditioner to make your own soil mixes.

 

[perlite]

title = Perlite - Buy Perlite, Vermiculite. 

 

[cart]

title = Shopping Basket

 

[checkout]

title = Details to Checkout

 

[paypal]

title = Redirect to PayPal

 

 

I have tried editing it but the titles don't change??  Do i need to do something else to get this to change?

 

Your help would be really appreciated, desperately need to get this sorted!

 

Matt

 

 

Link to comment
Share on other sites

Yeah, there's no PHP code in that content at all. I'm guessing that you happened to find that the data in that file matched the data used for your application and that you modified that file with the expectation that it would change the corresponding information in the application. But, without knowing how the particular data in the application is actually determined there is no way to know how to change it. It could be that the file was used to generate other content that is actually used for displaying content on the site. For example, since this is a shopping site (based upon the titles cart, checkout and paypal) I have to assume that there is a database involved. It could be that the .conf file is used to set the initial values in the database. If that's the case there should be a way to rerun the setup script after making changes to the .conf file.

 

I would also assume you are using some pre-built shopping cart script. I suggest you look for help on the site that supports that application as they would be of much more help.

Link to comment
Share on other sites

Hey guys thanks for taking a look at my problem, i will try and give you some more information.

 

The site uses .tpl files, heres an example:

 

{include file='header.tpl' configs='casting'}

<h1 class="header"><em><strong>{$products[0].name}</strong></em></h1>

{if $products[0].name=='Worm Castings'}<img src="{#url#}images/220px-Worm.casts.jpg" width="266" height="220"  alt="Worm Castings Image" />  {/if}<img src="{#url#}images/{$products[0].image}" width="200" height=""  alt="{$products[0].name} Image" />

<form id="addtocart" action="{#url#}cart.php" method="get">

  <input type="hidden" value="{$products[0].id}" name="add">

  <table align="center">

    <tr>

      <td>Size:</td>

    </tr>

    <tr>

      <td><select name="size">

      {foreach $detail->detail as $item}<option value="{$item@key}">{$item@key} £{$item}</option>{/foreach}         

        </select></td>

    </tr>

  </table>

  <p id="addToBasket"></p>

  <input type="image" src="{#url#}images/{$style[0].add}" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">

</form>

<script type="text/javascript">

$('#addtocart').submit(function(event) {

    event.preventDefault();

 

  $.ajax( {

        url: $( this ).attr( 'action' ),

type: 'GET',

data: $( this ).serialize(),

dataType: 'html',

success:  function( response ) {

$('#addToBasket').html('<center><p style="color:green;font-size:14px;width:220px;text-align:center;"><img src="{#url#}images/checked.gif" align="left" />  Item Added To Basket</p></center>').show().fadeToggle(750);

getCount();

updateMiniCart();  

$('#cart').empty().append(response);

}

});

 

});

</script>

<h1> </h1>

{$products[0].description|stripslashes}

</div>

<div></div>

{include file='footer.tpl' configs='casting'}

 

Someone built the cart for me but they have gone awol. It was built with smarty V3.

 

I have a database, could the title info be stored there?  Just trying to figure out how to change the page title, didn't think it was going to be this hard.

 

Cheers,

 

Matt

Link to comment
Share on other sites

I don't see anything in that code that would display site titles and such. Not to be rude, but the description of this forum is

Do you need help with some code you wrote? Ask here! We'll get you the answers!

 

If you are unable to at least identify the code in question where the problem exists, it is pretty difficult to help you. You might try the freelancing forum to see if someone wants to invest the time (for payment) to help you. However, I will offer another suggestion. Since you are wanting to change the titles and such for the site you probably want to be looking into the header.tpl and footer.tpl files. However, I've never used Smarty templates so I don't know that you'll even find anything useful in those.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.