Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter daigo

    (@studio_pastel)

    Thank you, mattyrob!

    First, I tried “admin_footer-” . $GLOBALS[‘hook_suffix’] way. But, I couldn’t find out the hook_suffix of that page.

    Then, I chose the simple way depending css like below:

    function admin_css() {
    	echo '<style>
    		#sb2_footer {
    			display:none;
    		}
    		body.subscribe2_page_s2_posts #sb2_footer {
    			width:50%;
    			margin-left:180px;
    			display:block;
    			border:1px solid #bbb;
    			background:#fff;
    			padding:20px;
    		}
    		body.subscribe2_page_s2_posts.folded #sb2_footer {
    			margin-left:56px;
    		}
    		@media screen and (max-width: 782px) {
    			#sb2_footer {
    				width:80%!important;
    				margin:0 auto!important;
    			}
    		}
    	</style>';
    }
    add_action('admin_head', 'admin_css');
    
    function sb2_admin_footer() {
    	echo '<div id="sb2_footer">Template Here</div>';
    }
    add_action('admin_footer', 'sb2_admin_footer');

    I felt like this isn’t smart way. It works though.
    Anyway, thanks.

    Thread Starter daigo

    (@studio_pastel)

    Thanks a lot!!
    As you mentioned, I guess I skipped some versions.

    Thread Starter daigo

    (@studio_pastel)

    Today, I updated the latest version 1.1.1 and solved my problem like below:

    add_action( 'admin_menu', 'remove_admin_menu_links' );
    function remove_admin_menu_links() {
       remove_menu_page('cptui_main_menu');
    }

    Thank you.

    Thread Starter daigo

    (@studio_pastel)

    Thank you for replying.
    Here I can tell you my gratitude.
    Your plugin helps me a lot!!

    Anyway, I found the code I wrote:

    add_action( 'admin_menu', 'remove_admin_menu_links' );
    function remove_admin_menu_links() {
       remove_menu_page('cpt_main_menu');
    }

    This doesn’t work. I am sure it did work before.

    Could you teach me why?

Viewing 4 replies - 1 through 4 (of 4 total)