For assistance with theme development.

STICKY: Theme development forum guidelines

The theme development forum was created to aid those who are developing themes for Drupal. This forum is not for issues you may be having with contrib themes. Issues with contrib themes should be placed in the issue queue of the theme in question. Please respect this.

If you you have drupal installed already and are seeking a theme, have a question about a specific theme and what it does or if it will fit your use case, please place your questions in the Post installation forum.

limiting views by unique IP address

I think I am using Drupal 7. Using News Center theme at la1news.com. Anyway, I have unique IP addresses viewing articles I publish numerous times per minute. I think it is the writer and his or her friends refreshing the article over and over again to increase the number of views and make their way to the Most Viewed Stories Top Seven. How can I limit the number of views to once per IP address? I think there is a way but I forgot. I already know how to block IP addresses but that is time consuming.

Block Footer sizes

Hi,

Can you give me an idea which file controls the size of the footer please? Is it a file within the theme? Or a file that controls the placing of all of the contents on the page? Or is it within the block module files?

Thank you

THEME_preprocess_menu_link__main_menu not firing

My hook is not firing. It use to and now it doesnt at all. What could be the issue? I've tested nearly everything.

Need help with the styling comments

Hi!
I have in my template.php (custom theme) the following code to present a comments along with EDIT and DELETE Links:

Create a flag link in Twig. Php function I know, but howto in Twig?

I wanted to create a flag link in one of my template file. If in php, what I have to follow is as below:

flag_create_link('bookmarks', $node->nid);

What would be the right approach to do the same in D8 with twig?

Pages

Subscribe with RSS Subscribe to RSS - Theme development