Forum Replies Created
-
AuthorPosts
-
Thanks, problem solved.
My "functions.php" file:
<div> <div><span style="color: #569cd6"><?php</span></div> <div><span style="color: #6a9955">/**</span></div> <div><span style="color: #6a9955"> * Theme functions for NOO JobMonster Child Theme.</span></div> <div><span style="color: #6a9955"> *</span></div> <div><span style="color: #6a9955"> * </span><span style="color: #569cd6">@package</span><span style="color: #6a9955"> NOO JobMonster Child Theme</span></div> <div><span style="color: #6a9955"> * </span><span style="color: #569cd6">@version</span><span style="color: #6a9955"> 1.0.0</span></div> <div><span style="color: #6a9955"> * </span><span style="color: #569cd6">@author</span><span style="color: #6a9955"> Kan Nguyen <[email protected]></span></div> <div><span style="color: #6a9955"> * </span><span style="color: #569cd6">@copyright</span><span style="color: #6a9955"> Copyright (c) 2014, NooTheme</span></div> <div><span style="color: #6a9955"> * </span><span style="color: #569cd6">@license</span><span style="color: #6a9955"> http://opensource.org/licenses/gpl-2.0.php GPL v2 or later</span></div> <div><span style="color: #6a9955"> * </span><span style="color: #569cd6">@link</span><span style="color: #6a9955"> http://nootheme.com</span></div> <div><span style="color: #6a9955"> */</span></div> <div><span style="color: #6a9955">// An example of how to write your own code in another file:</span></div> <div><span style="color: #6a9955">// require_once dirname(__FILE__) . 'example-code.php';</span></div> <div><span style="color: #6a9955">// Load language file from child-theme</span></div> <div><span style="color: #6a9955">// add_action( 'after_setup_theme', 'noo_child_theme_setup' );</span></div> <div><span style="color: #6a9955">// function noo_child_theme_setup() {</span></div> <div><span style="color: #6a9955">// load_child_theme_textdomain( 'noo', get_stylesheet_directory() . '/languages' );</span></div> <div><span style="color: #6a9955">// }</span></div> <div><span style="color: #dcdcaa">add_filter</span>(<span style="color: #ce9178">'noo_post_job_btn'</span>, <span style="color: #569cd6">function</span>(){</div> <div> <span style="color: #c586c0">return</span> <span style="color: #ce9178">'<li id="nav-menu-item-post-btn" class="menu-item-post-btn"><a data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="#">'</span> . <span style="color: #dcdcaa">jm_get_button_text</span>() . <span style="color: #ce9178">' <span class="caret"></span></a><ul class="dropdown-menu"></span></div> <div><span style="color: #ce9178"> <li><a href="http://jobshut.org/post-job/">Post International Jobs</a></li></span></div> <div><span style="color: #ce9178"> <li><a href="http://jobshut.org/post-job/">Post Local Jobs</a></li></span></div> <div><span style="color: #ce9178"> </ul></li>'</span>;</div> <div>});</div> <div><span style="color: #c586c0">if</span> ( ! <span style="color: #dcdcaa">current_user_can</span>(<span style="color: #ce9178">'manage_options'</span>) ) {</div> <div><span style="color: #dcdcaa">add_filter</span>( <span style="color: #ce9178">'show_admin_bar'</span>, <span style="color: #ce9178">'__return_false'</span> );</div> <div>}</div> </div>
Thanks a lot. It worked. Sorry to bother you for so long.
Take care. Stay safe.
This reply has been marked as private.This reply has been marked as private.I have added the code, but it broke my site. I don't know what I am doing wrong.
I have invited you to access my hosting. Please check your email.
Can you please send me your email address and name so I can grant access for you in my hosting?
I copied and pasted the code sent me, exactly as you instructed, but like before it broke the site and showed the "There has been a critical error" message.
"To login i need code ..." I don't understand what code you are talking about. Can't you login, using the credentials I gave you?
If you can login then click on "Azizur" dropdown on the header. Then "Visit My Account" .
After that, scroll down to the "Web Hosting (Ultimate Linux hosting with cPanel)" section. Click on "Manage".
Click on the "cPanel Admin" button.
Now under the "FILES" section click on "File Manager".
Now double click "public_html" > "jobshut.org" > "wp-content" > ...
And if you cannot login, please clear up about what do you mean by "Code" as there is no two factor authentication.
This reply has been marked as private.This reply has been marked as private.Hello,
Thanks for the reply. But it did not work. I did exactly what you said.
1. I installed and switched to my Job Monster child theme.
2. Then I tried adding the custom code you provided in the functions.php file from the "Theme editor" under "Appearance". But I got the "Unable to communicate back with site to check for fatal errors PHP reverted PHP file by using SFTP."
3. So, I switched over to my hosting site. Under "public_html" > "jobshut.org" > "wp-content" > "themes" > "noo-jobmonster-child", I found the "functions.php" file and edited it there.
But, it broke my site.
I included the images.
Attachments:
You must be logged in to view attached files.Thanks for the reply.
Well, now how can I just customize the 'Post A Job' button to a dropdown menu and show 'Post Local Jobs' and 'Post International Jobs'.
Hello, support guys, are you there? It has been 3 days since I posted this question and yet no response from you.
-
AuthorPosts