How can I disable default blocks in Drupal 7 without touching the Blocks Config admin?

Is there any way to increase the number of these wp homepage blocks?

  • You can find more legible version @http://stackoverflow.com/questions/19877484/increase-number-of-homepage-categories (this one here has the code messed up...) I'm using http://www.s5themes.com/theme/simplecorp/ theme, and I need to increase the number of https://www.dropbox.com/s/uy8ijcqu2bkzjhy/Screenshot%202013-11-09%2015.56.10.png four picture-and-text blocks to six. I tried even to redirect index.php to my custom .php page template, but it didn't work at all... Next thing I tried is, that in /wp-content/themes/simplecorp/admin/options/homepage.php I found this code below (well 4 blocks of it but with incremented numbers) $options[] = array( "name" => "Content Box 1 Title",                    "id" => $shortname."_homecontent1title",                    "std" => "Awesome Features",                    "type" => "text");$options[] = array( "name" => "Content Box 1 Text",                    "id" => $shortname."_homecontent1",                    "std" => "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore.",                    "type" => "textarea");$options[] = array( "name" => "Content Box 1 Image",                    "desc" => "Click to 'Upload Image' button and upload Content Box 1 image.",                    "id" => $shortname."_homecontent1img",                    "std" => "$blogpath/library/images/sampleimages/featured-img-01.png",                    "type" => "upload");$options[] = array( "name" => "Content Box 1 URL",                    "id" => $shortname."_homecontent1url",                    "std" => "#",                    "class" => "sectionlast",                    "type" => "text"); And by copy-pasting and incrementing numbers up to 6 which is the desired count, I created two more of them (5th and 6th). But when I tried to reload my wp-admin panel, hoping, that two more groups of settings would appear, it just showed me a blank page instead. I suppose, the count of homepage blocks is connected with something, which requires exactly four of them. But what?... I'd be very grateful if anybody could suggest me a solution!

  • Answer:

    Are you doing this just so you can add any content from the backend? If not you can hardcode it in the home.php file. I might update my answer depending on your reply.

Cosmin Barbu at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.