Hi Jason,
I need a bit of help with this one. I’m trying to work my way through coding and php and having some trouble if you could point me in the right direction, please?
To be clear, to add the log in/register links to the header, I need to add some code to my child theme functions file. I’ve come up with this but getting errors:
01. if (!function_exists (“s2member_pro_login_widget”))
02. {
03. function s2member_pro_login_widget ($options = FALSE, $args = FALSE)
04. $options => array
05. array(“signup_url” => __(%%automatic%%),
06. “login_redirect” => __(“”),
07. “logout_redirect” => “%%home%%”,
08. {
09. $args = (is_array ($args)) ? $args : array (“before_widget” => “”, “before_title” => “
“, “after_title” => “
“, “after_widget” => “”);
10. /**/
11. return eval (‘ob_start(); c_ws_plugin__s2member_pro_login_widget::widget($args, $options); $ob = ob_get_clean(); return $ob;’);
12. }
13. }
14. ?>
I would really like to do this myself but I’m afraid I will destroy my site without a bit of help. Could you please give me the basic rundown of the steps I need to take to achieve my goal?