This forum is for assistance with theme development.

Displaying text (floating text) to the right of an image - Newbie

Hi 

I am very new to Drupal. I have created a content page (based on basic page for static content) with images and the texts appear below that. 

How do I get the texts to float to right of the image? I mean where do I make the changes and apply it to the contents of the page.

It would be a CSS file I think. 

I have two themes installed (default based on foundation, Zurb Foundation 6). 

Regards

Zain

 

juicebox libaray not loading...

Hi All,

I have an issue with the juicebox module not being rendered on a custom twig node page. 

I am guessing its something to do with my .libraries.yml file.  I am using a custom sub theme of bootstrap barrio.

My libraries.yml contains the following:

Row spacing in tables

I'm currently working on a site in Drupal 7 with the Skeleton theme.

For tables I create in content there is spacing between each row.   If I switch to a different theme, there is not.  I have compared the HTML output on both and do not see any difference in the HTML around the table.

I'm pretty sure that I need to edit something in the CSS, but I can't figure it out.  

Any help would be appreciated.

Precisely edit my subtheme

Hello :)

I'm doing some tests using Barrio theme. I created a subtheme using the provided script.

Barrio provides a lot of customisation possibilities using Appearance page. However, I would like to go beyond them and modify CSS files. However, I don't know how to clearly target an element of the page, to find the proper CSS file, and then modify it, to alter only the targeted element, without consequences somewhere else.

Is there any tutorial for that how to gain more control on our theme ?

I heard of Twig debuger module, which modify HTML generated code.

Twig render fields if depending on selected value

Hello,

I have a paragraph type that has several fields:

Image_field, link_field, and List Field that consist of:

s|Small
m|Medium
l|Large

In twig I want to have an if statement that if you select "s", wrap image_field and link_field with a div class of .small. If you select "m", wrap image_field and link_field with a div class of .medium...etc.

I tried doing this, but I'm still getting ALL my content rendered with .small div class:

Template SlideShow Hide Not Working Danland Theme

https://www.drupal.org/project/danland

I'm using drupal 9 version theme doesn't hide slideshow can you help me

Pages

Subscribe with RSS Subscribe to RSS - Theme development