Our friends at ASG Press has published an excellent guide with 3 practical ways to get your first website designed.
Our friends at ASG Press has published an excellent guide with 3 practical ways to get your first website designed.
BWP External Links gives you total control over external links on your website. This plugin also comes with a comprehensive domain filtering feature. One of the features allows you to redirect external links here is how you can create your own redirection page to warn and forward your readers to a third party website.
Creating the Redirect-To warning page involves creating a standard WordPress Page and inserting a JQuery function to get the location parameter from the URL and forward the browser to that location.
Here is the code snippet to insert into the page. Make sure you’re in HTML mode.
<script type="text/javascript" language="javascript">// <![CDATA[
function getQueryVariable(variable)
{
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];}
}
return(false);
}
var temp = 'location.href="' + getQueryVariable('url') + '"';
setTimeout(temp,5000); // Change time by changing 5000. 1000 = 1 second
// ]]></script>
You will be redirected to<script type="text/javascript">// <![CDATA[
document.write(getQueryVariable('url'))
// ]]></script>in 5 seconds.
You can change the time to redirect and the text ‘You will be redirected to … in 5 seconds.’
I am just getting into php, but it would be nice if you could show a little bit of the architecture of headway as it applies to hooks from jigoshop. Specifically I would like to have an easy way to change the div content structure of the products/prices of jigoshop to something I can globally (within a child theme of headway) apply css to.
- Richspo – July 29, 2012
Here you go Rich =)
The jigoshop price is created by the function jigoshop_template_single_price which is found in jigoshop_template_functions.php. Here is the code snippet for that function.
<?php
function jigoshop_template_single_price( $post, $_product ) {
?>
<p class="price"><?php echo $_product->get_price_html(); ?></p>
<?php
}
?>
1) Go into your functions.php and create your own price layout.
<?php
function my_price_function( $post, $_product ) {
?>
<p class="my_price"><?php echo $_product->get_price_html(); ?></p>
<?php
}
?>
2) Then you will then remove the jigoshop price layout and hook your own into the Jigoshop template.
remove_action( 'jigoshop_template_single_summary', 'jigoshop_template_single_price', 10);
add_action('jigoshop_template_single_summary', 'my_price_function', 10,2);
Now if you reload the page, you should see your own css class in the product page instead of the default Jigoshop one.
Recently our Jigoshop checkout page stopped working. When our customers would try to complete the checkout process they would get a waiting indicator that would force them to wait forever to checkout.
Our system had the following software versions
After a long conversation with Jigoshop support we investigated this problem ourselves. It turns out that the ajax admin handler that processes checkout requests for Jigoshop calls ob_clean() before returning a response. We found out that the call to ob_clean() was causing php to hang indefinitely. As a result request made to the jigoshop checkout ajax handler were not being returned. For some reason this error was not being reported in the php.log file.
Further investigation revealed that source of the issue was the fact that Headway Themes was initializing the output buffer using a call to ob_start with ‘ob_gzhandler’, passed as a parameter. Unfortunately our php was not configured to use zlib library for output compression, which is what this call specifies. Output compression is controlled using the zlib.output_compression setting in the php.in file. To enable output compression we would have to set zlib.output_compression=On, the default is Off. In our installation we are not able to control the php.ini file, fortunately we are able to override this Headway Themes setting using the headway_gzip filter. We added the following code to the functions.php file for our headway child theme.
// functions.php
function atlas_noBuffer() {
return false;
}
add_filter(‘headway_gzip’,'atlas_noBuffer’);
This seamlessly resolved the issue for us.
Resources:
Moonlight Me Prom has created an image that is synonymous with beauty. We set out to create an experience that every prom girl dreams about, from the moment our gowns are put on.
The Atlas Software Group built a catalog management system to manage the Me Prom Website and Val Stefanie website through their FoxPro Database.
Red Eye, Inc. focuses on community, creativity, and serving humanity with young adults in Los Angeles and New York. It is a place where artists, musicians, actors, and many more can find authentic relationships while also using their platforms to serve others.