Created
June 5, 2015 04:47
-
-
Save mehedicsit/16a5c3f20862cd4edfbd to your computer and use it in GitHub Desktop.
Tricks about redux frame work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| আমরা যারা WordPress theme এ Redux Framework নিয়ে কাজ করি তারা Redux এর নতুন version এ কিছু সমস্যায় পরি যেমন allow tracking এই নামে একটি popup open হয় theme option এ যাওয়ার পর এছাড়াও tools menu তে Redux About Page টি যুক্ত হয়ে যায় এবং কিছু Ads, Developer mode এ গুলো show করে। এ সমস্যা থেকে মুক্তি পেতে আপনাকে যা করতে হবেঃ | |
| Allow tracking option টি যদি আপনি না চান তাহলে | |
| Framework.php file এ গিয়ে লাইন নম্বর ৫৫১ তে disable_tracking => flase কে true করে দিন। অথবা লাইন নম্বরটি আপনার Redux Version এর ওপর নির্ভর করবে। | |
| Tools menu থেকে Redux About page টি সরাতে চাইলে আপনাকে যা করতে হবেঃ | |
| আপনার functions.php file টিতে একটি function apply করতে হবে। | |
| একটি function নিবেন যে কোন নামে যেমন | |
| function remove_redux_menu() { | |
| remove_submenu_page('tools.php','redux-about'); | |
| } | |
| add_action( 'admin_menu', 'remove_redux_menu',12 ); | |
| এটি Tools menu থেকে Redux-about page টিকে মুছে দিবে। | |
| Dashboard এ widget এবং admin notice বন্ধ করতে চাইলে লাইন নম্বর ৪১১ তে এই অংশ টুকুকে comment করে দিন অথবা লাইন নম্বরটি আপনার Redux Version এর ওপর নির্ভর করবে | |
| if ( $this->args['dev_mode'] == true || Redux_Helpers::isLocalHost() == true ) { | |
| include_once 'core/dashboard.php'; | |
| if ( ! isset ( $GLOBALS['redux_notice_check'] ) ) { | |
| include_once 'core/newsflash.php'; | |
| $params = array( | |
| 'dir_name' => 'notice', | |
| 'server_file' => 'http://www.reduxframework.com/' . 'wp-content/uploads/redux/redux_notice.json', | |
| 'interval' => 3, | |
| 'cookie_id' => 'redux_blast', | |
| ); | |
| new reduxNewsflash( $this, $params ); | |
| $GLOBALS['redux_notice_check'] = 1; | |
| } | |
| } | |
| এছাড়াও যদি developer mode টি থেকে যায় তাহলে sample-config.php file এ লাইন নম্বর ১১৯ এ dev_mode => true কে false করে দিন তাহলে developer mode থাকবে না অথবা লাইন নম্বরটি আপনার Redux Version নির্ভর করবে | |
| আশা করি পোস্টটি সবার উপকারে আসবে। |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment