ThemeForest

Posts by Gareth_Gillman

273 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Microlancer Beta Tester
  • United Kingdom
Gareth_Gillman says

not a million miles away, in Gloucestershire but I am in Bucks on a regular basis due to clients over that way :)

273 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Microlancer Beta Tester
  • United Kingdom
Gareth_Gillman says

You should create a home.php or front-page.php template if the homepage has a different layout to tother pages but you do need to set the homepage in the settings as well.

I personally add a front-page.php to all my themes as it means I can add custom layouts to the homepage without having to change template layout in the page editor.

273 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Microlancer Beta Tester
  • United Kingdom
Gareth_Gillman says

Surely support should be supporting the customer to find a fix for the issue, it may only be as simple as running through some simple questions (who are you trying to pay with, have you tried other cards etc) but then least the customer will feel appreciated and it may resolve the issue as it could be something as simple as a wrong number or a block on the card.

Support is supposed to support the customers, not just throw them to the side with unhelpful answers.

273 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Microlancer Beta Tester
  • United Kingdom
Gareth_Gillman says

Trying to do a script redirect using WP redirect and for some reason I cannot get it to work it just reloads to the homepage).

My code is:

wp_redirect(get_bloginfo('template_directory').'/quiz-healthandsafety-getresults.php');

Any ideas?

273 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Microlancer Beta Tester
  • United Kingdom
Gareth_Gillman says

could it be to do with the annoying WP user bar?

It doesn’t show it on chrome so I can’t think of it being your CSS.

273 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Microlancer Beta Tester
  • United Kingdom
Gareth_Gillman says
273 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Microlancer Beta Tester
  • United Kingdom
Gareth_Gillman says

If you purchased it for the winner, you might be OK but just giving it away would more than likely be a no-no

273 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Microlancer Beta Tester
  • United Kingdom
Gareth_Gillman says

All sorted, rewrote the comment function and found the error, now works a charm :)

273 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Microlancer Beta Tester
  • United Kingdom
Gareth_Gillman says

Well you can do with PHP / WP

In the header.php, set a variable e.g.

$can_vote = '1';

Before the HTML for the vote, check the variable:

<?php
if($variable == '1') {
 // display vote
} else {
 // already voted
}
?>

Now, the fun part, create a new user field in WP and set the default to be 1

When they have voted, you need to change the variable to 0 (or something else, and also edit the user field to be the same.

The WP codex will show up ways to create user fields, but it’s not the simplest and cleanest method to do this.

273 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Microlancer Beta Tester
  • United Kingdom
Gareth_Gillman says
by
by
by
by
by