Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Problems
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 21st, 2012, 05:26 AM
blomm blomm is offline
 
Join Date: Sep 2012
Posts: 2
Default Changing font Sorting Template and Simple Search

Hey, I've browsed through the forum but couldn't find an answer to this that quickly.

I want to change the font of the sorting template. I don't understand how to change the parts that are in PHP code as well as the "Go" button. The text "Products per page" and "Sort by" automatically change which the theme's font, but what's in PHP isn't. I've tried several things, such as the [font=][/font] and <font face=></face> but none of 'em works.

The same is with the Simple Search template. The part where you can enter your search and the "Search" button". I will paste the codes below, maybe someone can add the code for changing the font so that I understand how it's done.

Code for Sorting template

<div class="dffltrs">
<form method="get">
<span class="dflside">
Products per page:
<?php echo datafeedr_tools()->form_select("ppp",
array(
"12" => "12",
"24" => "24",
"36" => "36",
"48" => "48",
)); ?>
</span>
<span class="dfrside">
Sort by:
<?php echo datafeedr_tools()->form_select("sort",
array(
"price" => "Price (low to high)",
"-price" => "Price (high to low)",
"name" => "Product Name (a - z)",
"-name" => "Product Name (z - a)",
)); ?>
<input type="submit" value="Go" class="dfsbmt" />
</span>
<div class="clearingdiv">&nbsp;</div>
</form>
</div>

Code for Simple search

[search.form]
<div class="srchform">
<p><label for="word">Search:</label> [search.word]</p>
<p>[search.submit title='Search']</p>
</div>
[/search.form]

<script type="text/javascript">
<!--
/*
* NOTE: This JS code would be much better off
* existing in your theme's header.php file.
*/
function wash( anInput ) { if(anInput.value == anInput.defaultValue) anInput.value = ''; }
function checkWash( anInput ) { if(anInput.value == '') anInput.value = anInput.defaultValue; }
//-->
</script>



If anyone can clear this up for me I would be very grateful

Thanks, Michael
  #2  
Old September 21st, 2012, 10:04 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Welcome to the forums!

The "Go" button can be modified using CSS by targeting the .dfsbmt class like this:

Code:
.dfsbmt {background: red;
border: 5px solid blue;}
The text in the drop downs cannot be styled... at least not without major Javascript implementations.

As for the search box and search submit button, you can use the following CSS:
Code:
#wdgt_ss .store_search_form input {
	background: silver;
	border: 1px solid pink;
}

#wdgt_ss .store_search_form input[type=submit] {
	background: yellow;
	border: 1px solid red;
	float: right;
}
Here's how to add the CSS code to your site: http://www.datafeedr.com/videos?vide...rc=yt#videotop

Eric
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting Template not displaying right daniel_28 Problems 4 July 11th, 2012 09:27 AM
Sorting Template Changes tcsar757 Questions 4 March 29th, 2012 07:16 PM
Sorting Template mrsimnok Questions 2 December 6th, 2011 09:46 AM
Regarding Sorting Template msp02 Questions 2 October 12th, 2011 12:19 PM
Sorting Template on Search Results Page patagonia Questions 3 June 19th, 2011 02:02 PM


All times are GMT -5. The time now is 05:22 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.