Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

zen shortcode grid question

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi there!

I'm trying to get a zwo column grid with zwo separate <h4> lines on the left and an image on the right.

This one one works:
<h4>{zen-row}{zen-7}some text. some other text{/zen-7}{zen-5}an image{/zen-5}{/zen-row}</h4>

But I want to have this one:
<h4>{zen-row}{zen-7}some text.</h4>
<h4> some other text{/zen-7}{zen-5}an image{/zen-5}{/zen-row}</h4>

It also works when I put the zen shortcode in p tags as described in the documentation:

<p>{zen-row}{zen-7}</p>
<h4>some text</h4>
<h4> some other text</h4>
<p>{/zen-7}{zen-5}</p>
<div>an image</div>
<p>{/zen-5}{/zen-row}</p>

But this gives me unwanted spaces.

Thanks for any assistance!
Christian
  • Christian Rieger's Avatar
  • Christian Rieger
  • 12 Month basic
  • 261 posts
  • 3 Thanks
  • Karma: 1
The administrator has disabled public write access.
Can you remind me of the link for the site

Thanks
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul,

here's the link:
www.venture.mathelike.de/loesungen-abitur/mathematik-abitur-bayern-2015/pruefungsteil-a/stochastik-2/Teilaufgabe-2a.html

The last sentence of the text left from the image should be a separate h4 paragraph.

At the moment there is a only a <br />

Here's the code:
<h4>{zen-row}{zen-7}Für ein Zufallsexperiment wird eine Zufallsgröße \(X\) festgelegt, welche die drei Werte -2, 1 und 2 annehmen kann. In der Abbildung ist die Wahrscheinlichkeitsverteilung von \(X\) dargestellt.<br />Ermitteln Sie mithilfe der Abbildung den Erwartungswert der Zufallsgröße \(X\).{/zen-7}{zen-5}<img src="images/stories/B2015_PT_A_S_2/B2015_PT_A_S_2_2.0.png" alt="Abbildung zu Teilaufgabe 2 Stochastik 2 Prüfungsteil A Mathematik Abitur Bayern 2015 " width="245" height="234" />{/zen-5}{/zen-row}</h4>

Thanks!
Christian
  • Christian Rieger's Avatar
  • Christian Rieger
  • 12 Month basic
  • 261 posts
  • 3 Thanks
  • Karma: 1
The administrator has disabled public write access.
Hi Christian,

Do you have the latest version of the shortcode plugin installed?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul,

yes I think so. It's version 1.3.1 installed. Administration says version 1.3.0 but it's 1.3.1. I checked it again.

Thanks!
Christian
  • Christian Rieger's Avatar
  • Christian Rieger
  • 12 Month basic
  • 261 posts
  • 3 Thanks
  • Karma: 1
The administrator has disabled public write access.
ah right

I din't think is a valid way of working with everything being in a heading tag

If its about font size I'd include it in a class instead - try that instead

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Okay, I understand...
So formatting an intro text with a header tag is a general mistake. Sounds logical...

Thanks a lot Paul!
Christian
  • Christian Rieger's Avatar
  • Christian Rieger
  • 12 Month basic
  • 261 posts
  • 3 Thanks
  • Karma: 1
The administrator has disabled public write access.
Hi Christian,

Its about nesting the tags and image all in the one tag
If you try in a class with a separate h4 that would be a better way of working

Does that work better?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul,

I put it all in a class „item-introtext" and only the last sentence is in h4 tags and it works.

Is this correct?
www.venture.mathelike.de/loesungen-abitur/mathematik-abitur-bayern-2015/pruefungsteil-a/stochastik-2/Teilaufgabe-2a.html

I'm a little confused now about using the h4 header tag. I always used h4 to format all intro text. Is this unusual or an invalid way of formatting in general? If so I'd have to rewrite or replace hundreds of intro texts??

Thanks a lot!
Christian
  • Christian Rieger's Avatar
  • Christian Rieger
  • 12 Month basic
  • 261 posts
  • 3 Thanks
  • Karma: 1
The administrator has disabled public write access.
Hi Christian,

If it works then cool :)

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
The following user(s) said Thank You: Christian Rieger

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers