This forum is for assistance with theme development.

Output entity reference link uri aside from label

Is there a way I can output the link of an entity reference aside from displaying the label. I have an entity reference field that links to a page node content type. I'm trying to figure out how I can output the link.

Here is the sample of the code I've just created. It shows the label of the entity but it does not come with link.

I tried using `entity.uri.value` or just `entity.uri` to output the url.

Site-wide background image in D8

Anyone had luck changing the background image in D8 to a fixed background image file ?

I looked at themes/theme-name/css/style.css

body {
line-height: 1.5;
font-size: 87.5%;
word-wrap: break-word;
margin: 0;
padding: 0;
border: 0;
outline: 0;
background-image: url('../images/main-bg1.png');
}

This is not working.. not sure what else can I do ?

Customizing a Bootstrap theme

I would like to know how to customize a theme.
Question #1: all html elements like header, section, footer etc can be removed from the Drupal interface?
Question #2: I am working with a Bootstrap theme and there is a section that has 3 columns (each with an image and text), but I want only 2 columns with this same content, how/where would I modify this? I am confused when to modify content with block.twig, node.twig and when in the view mode. Also what sections of a page are block, nodes, view mode part of? And with any I can modify this Bootstrap theme?

info_split.type is not displaying content type in search results - 8

I would like to display the content type of a search result. The documentation in search-result.html.twig seems to show {{ info_split.type }} should do that, but it isn't showing anything.

Horizontal to Vertical Menu bar conversion

Hi Guys,
Good morning to all !!! I started my day with drupal menu bar conversion. My goal is to use an existing theme and convert the top menu bar which is common in millions of sites into something that has a vertical menu bar that would include things like: Home, Events, Activities, Projects, Forums etc.

Any ideas of where to begin ? I am thinking at the block level and convert the menu block, i don't know if it is possible..

By end of the day, I would know..

Peace.

Bought theme, frontpage different header/footer

Morning people :-)

I have recently bought a theme that I really like with a lot of cool features.

I has different headers and footers I can choose among and a lot of different layout styles. And I have a styleswitcher on the frontpage to look at all the different ones. That I have deactivated when I found the ones I wanted to use.

I have installed the theme and it works like a charm, except that the frontpage won't use the same header and footer as the rest og the pages.

Pages

Subscribe with RSS Subscribe to RSS - Theme development