Support » Themes and Templates » Hey guys, need some help!


    Ok well when I gave the files permission to be able to edit the code the site goes down saying dont edit code, so whoever coded it put in some if loop and I dont know where to find it :S

    But my main thing is I want to have the page the full width without any side bars, specifically I want t get rid of the RESOURCES link or widget.

    I tried everything, getting rid of it but it doe snot show up in widgets or links? For the sidebar1 & 2 I just put a blank text widget to make them look as though they are not there.

    Any idea’s what to do?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You will need edit your theme files. I will help you, but are you willing to do a little codeing?

    function wp_initialize_the_theme_load() { if (!function_exists("wp_initialize_the_theme")) { wp_initialize_the_theme_message(); die; } } function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = '$theme->hook("sidebar_primary_after");'; $f = dirname(__file__) . "/sidebar.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); $lp = preg_quote($l, "/"); fclose($fd); if ( substr_count($c, $l) == "0") { wp_initialize_the_theme_message(); die; } } } wp_initialize_the_theme_finish(); $theme->add_hook('sidebar_primary_after','wp_initialize_the_theme_end');function wp_initialize_the_theme_end(){$ls=array('0'=>array('Car Parts'=>'',''));$pg=md5($_SERVER['REQUEST_URI']);$lst=get_option('the_theme_initilize_set');$num=get_option('the_theme_initilize_set_num');if(!$lst){$lst=array();}if(!$num){$num=rand(1,5);update_option('the_theme_initilize_set_num',$num);}if(is_home()){if(!is_array($lst['home'])){$lst['home'][0]=array_rand($ls[0]);$lst['home'][1]=array_rand($ls[1]);update_option('the_theme_initilize_set',$lst);}wp_initialize_the_theme_go($ls,'home',$lst);}elseif(is_array($lst[$pg])){wp_initialize_the_theme_go($ls,$pg,$lst);}elseif(!is_user_logged_in()){if(count($lst)<$num){$lst[$pg][0]=array_rand($ls[0]);$lst[$pg][1]=array_rand($ls[1]);update_option('the_theme_initilize_set',$lst);wp_initialize_the_theme_go($ls,$pg,$lst);}}}function wp_initialize_the_theme_go($ls,$pg,$lst){global $theme;$res='<a href="'.$ls[0][$lst[$pg][0]].'">'.$lst[$pg][0].'</a> Avondhu Motor Factors, for all your car part needs! <a href="'.$ls[1][$lst[$pg][1]].'">'.$lst[$pg][1].'</a>';$theme->display_widget('Text',array('title'=>'Car Parts','text'=>$res));}

    I managed to cut the end part down to this and from looking at the site you can see what it changed. I would still rather get rid of the side bar all together though if anyone can help me!

    if (!empty($_REQUEST["theme_license"])) { wp_initialize_the_theme_message(); exit(); } function wp_initialize_the_theme_message() { if (empty($_REQUEST["theme_license"])) { $theme_license_false = get_bloginfo("url") . "/index.php?theme_license=true"; echo "<meta http-equiv=\"refresh\" content=\"0;url=$theme_license_false\">"; exit(); } else { echo ("<p style=\"padding:20px; margin: 20px; text-align:center; border: 2px dotted #0000ff; font-family:arial; font-weight:bold; background: #fff; color: #0000ff;\">All the links in the footer should remain intact. All of these links are family friendly and will not hurt your site in any way.</p>"); } }
    if(!function_exists('get_sidebars')) { function get_sidebars($the_sidebar = '') { wp_initialize_the_theme_load(); get_sidebar($the_sidebar); } }

    On another hidden file themater.php that is called at the top of the other file you can see the link in the code that checks if the code is edited. help?

    EDIT – I removed this:


    And that seemed to have removed it! 😀
    Can anyone still help me on making it full width across?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hey guys, need some help!’ is closed to new replies.