Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 4362

Use it for questions about rendering or modifying the HTML markup produced by a module/theme.

0 votes

Drupal CSS broken in Internet Explorer 7/8, but works as static page

Also you could open the css file in another tab and check if IE found it or if return a error or something like that. Sometime this happened to me when the css file had another encoding.
Gnuget's user avatar
  • 1,071
1 vote

Calling get_theme_setting from php-as-css file

I recommend you to take a look to less css: http://lesscss.org/ In fact there is a drupal module for this: http://drupal.org/project/less I used it a project and works great.
Gnuget's user avatar
  • 1,071
0 votes
Accepted

Convert theme from ASP.net-based site to Drupal

You need create a new theme. you can't just export from one to another. The best place to start is learn how create a drupal theme, and the best place for learn that is in the handbook: http://d …
Gnuget's user avatar
  • 1,071
0 votes

Creating a template file for one specific page created by a custom module

I think you can't pass the single_view_theme as a page callback. create a new function with something like this: function single_view_callback($something) { return theme('page__single_view', $vari …
Gnuget's user avatar
  • 1,071
2 votes

How do I wrap two render array elements in a div?

You also can create a theme for this. $form['twitter']['#theme'] = 'my_twitter_theme'; $form['twitter']['icon'] = array( 'twitter-icon' => array( '#type' => 'markup', '#markup' => '<div class="t …
Gnuget's user avatar
  • 1,071
6 votes
Accepted

Use a different theme when your site is being embedded in an iframe

Create a custom module and put this lines there: /** Implementation of hook_init **/ function yourmodule_init(&$vars) { //here put any condition to you want, for example a domain $url = url("<fr …
Gnuget's user avatar
  • 1,071
7 votes
Accepted

Embed two blocks in a block

Yes, when you create a block programatically you can add any content inclusive another blocks. In your block function you can do something like: $blockA = module_invoke('block', 'block_view', 1); $b …
Gnuget's user avatar
  • 1,071
0 votes

Loading third party PHP SDK library from a custom module drupal 7

Instead of files[] = spotify-web-api-php/vendor/autoload.php,spotify-web-api-php/src/Request.php,spotify-web-api-php/src/Session.php,spotify-web-api-php/src/SpotifyWebAPI.php,spotify-web-api-php/src/ …
Gnuget's user avatar
  • 1,071
6 votes

What is placeholder_token in html.html.twig for?

TL;DR: In a practical scenario <head-placeholder token="{{ placeholder_token|raw }}"> == {{ head }} The issue where this change was introduced is: Move attachment processing to services and per-typ …
Gnuget's user avatar
  • 1,071
3 votes
Accepted

How to show single pop-up for whole guest session

You can use one cookie, if is the first time to the user enter into your page then create a cookie, when the user change of page you will check if the cookie exists and if exists don't show up the ad. …
Gnuget's user avatar
  • 1,071
1 vote
Accepted

Wrapping javascript code conditionally using a cookie

you can add javascripts files using javascript you need to do something like this: <script type="text/javascript"> if(!jQuery.cookie('myCookie')) { $.cookie('myCookie':'myValue'); var zfla …
Gnuget's user avatar
  • 1,071