Jump to content

[SOLVED] Send to a friend - how to change the text color?


Recommended Posts

Hello.

 

tanks for your reply, but belive it or not, i already have that on product.css

 

/* SEND TO FRIEND (pop-in) ##################################################################### */
#send_friend_form {
}

#send_friend_form h2 {
padding:8px 11px;
font-size:12px;
color:#fff;
text-shadow:0 1px 0 #000;
text-transform:uppercase;
background:#383838;
}
#send_friend_form .product {
margin:20px 10px;
}

 

but the color still blue

very strange, is there another way to change this?

 

best regards

Link to comment
Share on other sites

I have force compile and disable cache, i also deleted manually all files from cache and compile

but still the same blue text color

 

cant understand! should i delete the send to a friend module?

 

tanks!

Link to comment
Share on other sites

i have uninstalled, deleted and re-installed the module "send to a friend" again

i have deleted all cache files manually, i have force compile an disable the cache

i still have the dam blue text "send to a friend"

now... how can this be possible? There is no logic! :wacko:

 

please help... :mellow:

 

tanks.

Link to comment
Share on other sites

plz see the screen shot. it still shows cached css. u do one thing goto send to friend module folder and find out sendtofriend.tpl file. in that find out

 

<h1>{l s='Send to a friend' mod='sendtoafriend'}</h1>

 

or

 

<h2>{l s='Send to a friend' mod='sendtoafriend'}</h2>

 

then add in the below code:-

 

style="color:#fff !important" into header tag like below

 

<h2 style="color:#fff !important" >{l s='Send to a friend' mod='sendtoafriend'}</h2>

post-366851-0-20769400-1366311706_thumb.jpg

Link to comment
Share on other sites

I cannot find: <h1>{l s='Send to a friend' mod='sendtoafriend'}</h1> or <h2>{l s='Send to a friend' mod='sendtoafriend'}</h2> in my sendtofriend.tpl file here my sendtofriend.tpl code:

{*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2013 PrestaShop SA
*  @version  Release: $Revision$
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}[/size][/font][/color]
[color=#343943][font=Arial, Helvetica, sans-serif][size=3]{capture name=path}{l s='Send to a friend' mod='sendtoafriend'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<div id="sendfriendpage">
<h1>{l s='Send to a friend' mod='sendtoafriend'}</h1>[/size][/font][/color]
[color=#343943][font=Arial, Helvetica, sans-serif][size=3]<p class="bold"><strong>{l s='Send this page to a friend who might be interested in the item below.' mod='sendtoafriend'}.</strong></p>
{include file="$tpl_dir/errors.tpl"}[/size][/font][/color]
[color=#343943][font=Arial, Helvetica, sans-serif][size=3]{if isset($smarty.get.submited)}
 <p class="success">{l s='Your email has been sent successfully' mod='sendtoafriend'}</p>
{else}
  <form method="post" action="{$request_uri}" class="std">
   <fieldset>
 <div class="product clearfix">
  <a href="{$productLink}" class="img_link"><img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'small_default')}" alt="" title="{$cover.legend}" /></a>
  <a href="{$productLink}" class="product_desc"><br />{$product->name}</a>
 </div>[/size][/font][/color]
[color=#343943][font=Arial, Helvetica, sans-serif][size=3]	 <div id="send_friend_form_content">
  <p class="text">
   <label for="friend-name">{l s='Friend\'s name' mod='sendtoafriend'}</label>
   <input type="text" id="friend-name" name="name" value="{if isset($smarty.post.name)}{$smarty.post.name|escape:'htmlall':'UTF-8'|stripslashes}{/if}" />
  </p>
  <p class="text">
   <label for="friend-address">{l s='Friend\'s email' mod='sendtoafriend'}</label>
   <input type="text" id="friend-address" name="email" value="{if isset($smarty.post.name)}{$smarty.post.email|escape:'htmlall'|stripslashes}{/if}" />
  </p>[/size][/font][/color]
[color=#343943][font=Arial, Helvetica, sans-serif][size=3]	  <p class="submit">
   <input type="submit" name="submitAddtoafriend" value="{l s='send' mod='sendtoafriend'}" class="button" />
  </p>
 </div>
   </fieldset>
  </form>
{/if}[/size][/font][/color]
[color=#343943][font=Arial, Helvetica, sans-serif][size=3]<ul class="footer_links">
 <li><a href="{$productLink}">« {l s='Back to product page' mod='sendtoafriend'}</a></li>
</ul>
</div>[/size][/font][/color]
[color=#343943][font=Arial, Helvetica, sans-serif][size=3]

 

my prestashop version is: 1.5.4

 

tanks

Link to comment
Share on other sites

hello again, i still have no luck

i have gave to you the wrong sendtofriend.tpl file, the previous file was from another installation of prestashop version

this one is from my site:

 

file "sendtofriend.tpl":

{*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2013 PrestaShop SA
*  @version  Release: $Revision$
*  @license	http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
{capture name=path}{l s='Send to a friend' mod='sendtoafriend'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<div id="sendfriendpage">
<h1>{l s='Send to a friend' mod='sendtoafriend'}</h1>
<p class="bold"><strong>{l s='Send this page to a friend who might be interested in the item below.' mod='sendtoafriend'}.</strong></p>
{include file="$tpl_dir/errors.tpl"}
{if isset($smarty.get.submited)}
 <p class="success">{l s='Your email has been sent successfully' mod='sendtoafriend'}</p>
{else}
  <form method="post" action="{$request_uri}" class="std">
<fieldset>
 <div class="product clearfix">
  <a href="{$productLink}" class="img_link"><img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'small_default')}" alt="" title="{$cover.legend}" /></a>
  <a href="{$productLink}" class="product_desc"><br />{$product->name}</a>
 </div>
 <div id="send_friend_form_content">
  <p class="text">
   <label for="friend-name">{l s='Friend\'s name' mod='sendtoafriend'}</label>
   <input type="text" id="friend-name" name="name" value="{if isset($smarty.post.name)}{$smarty.post.name|escape:'htmlall':'UTF-8'|stripslashes}{/if}" />
  </p>
  <p class="text">
   <label for="friend-address">{l s='Friend\'s email' mod='sendtoafriend'}</label>
   <input type="text" id="friend-address" name="email" value="{if isset($smarty.post.name)}{$smarty.post.email|escape:'htmlall'|stripslashes}{/if}" />
  </p>
  <p class="submit">
   <input type="submit" name="submitAddtoafriend" value="{l s='send' mod='sendtoafriend'}" class="button" />
  </p>
 </div>
</fieldset>
  </form>
{/if}
<ul class="footer_links">
 <li><a href="{$productLink}">« {l s='Back to product page' mod='sendtoafriend'}</a></li>
</ul>
</div>

 

hope some one can figure this out

tanks again anishjmc for your effort to trying find a solution :)

Edited by majority (see edit history)
Link to comment
Share on other sites

Ok. after hours of research and troubleshooting i have figure out what is the problem

the problem is the paypal module version 1.4.8, if enabled makes the text "Send to a friend" blue

when disabled the text go back to normal white, in some way paypal module is interfering with the send to a friend module or with the product.css itself

 

Now i need to find what code is causing this.... :unsure:

Can someone replicate this with the paypal module?

 

I appreciate any advise for a solution

Tanks in advance.

Edited by majority (see edit history)
Link to comment
Share on other sites

Ok, the noob here just found a fix

for anyone who have the similar problem here the steps:

 

go to modules > paypal > css > and open the file: "paypal.css"

now find this code:

h6,#fancybox-wrap h1,#fancybox-wrap h2,#fancybox-wrap h3,#fancybox-wrap h4,#fancybox-wrap h5,#fancybox-wrap h6{color:#036;font-family:Arial, Verdana, Helvetica, sans-serif;font-weight:400;text-transform:uppercase

 

and replace with this:

h6,#fancybox-wrap h1,#fancybox-wrap h2,#fancybox-wrap h3,#fancybox-wrap h4,#fancybox-wrap h5,#fancybox-wrap h6{color:#fff;font-family:Arial, Verdana, Helvetica, sans-serif;font-weight:400;text-transform:uppercase

 

Or just change the color code: #036 to the color code: #fff

 

after this the cache from /cache/smarty must be deleted, and from the browser too,

we also need to delete all cookies from the browser.

 

after that the annoying "Send to a friend" blue text will disappear leaving with the normal white text. :)

 

This method fix the problem for me, but i do not know if it is the right method...

changing the paypal module code can be dangerous? Can this influence with paypal's security?

i don't know, you see, i am not a coder, but i do see logic very well, i'm good with logic,

and because of that i fix the problem... well... for now.... B)

any way i'm going to start counting the bugs I found and fixed :P

 

Best regards and happy bug hunting...

Edited by majority (see edit history)
Link to comment
Share on other sites

  • 4 months later...
  • 4 months later...

Ok, the noob here just found a fix

for anyone who have the similar problem here the steps:

 

go to modules > paypal > css > and open the file: "paypal.css"

now find this code:

h6,#fancybox-wrap h1,#fancybox-wrap h2,#fancybox-wrap h3,#fancybox-wrap h4,#fancybox-wrap h5,#fancybox-wrap h6{color:#036;font-family:Arial, Verdana, Helvetica, sans-serif;font-weight:400;text-transform:uppercase
and replace with this:

h6,#fancybox-wrap h1,#fancybox-wrap h2,#fancybox-wrap h3,#fancybox-wrap h4,#fancybox-wrap h5,#fancybox-wrap h6{color:#fff;font-family:Arial, Verdana, Helvetica, sans-serif;font-weight:400;text-transform:uppercase
Or just change the color code: #036 to the color code: #fff

 

after this the cache from /cache/smarty must be deleted, and from the browser too,

we also need to delete all cookies from the browser.

 

after that the annoying "Send to a friend" blue text will disappear leaving with the normal white text. :)

 

Wow, and thank you that was really an annoying hard to solve problem.

 

Thank you, thank you! :P

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...