• Resolved cjamediadesign

    (@cjangela)


    Hi there,

    I would like to know how to change the sorting of the plugins. Now yo have dailyVerses bibleText then dailyVerses bibleVerse below.

    But i would to know how to change it the let the “dailyVerses bibleVerse” be at first an then the dailyVerses bibleText be below it.

    Something like this I would like it to be showing:

    Title: John 12:2
    Text: Lorem ipsum dolor sit amet, cibo ponderum in quo, semper melius scriptorem duo ea, cu aperiri evertitur expetendis eam.

    Title come first, then text comes under.

    Pleace advice.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author dailyverses

    (@dailyverses)

    Thanks for your question. By default this is not possible in the plugin, but you can add the following CSS to change the order:

    .widget.widget_dailyverseswidget, .widget.widget_randombibleversewidget
    {
    	position:relative;
    }
    
    .dailyVerses.bibleText
    {
    	position:relative;
    	padding-top:20px;
    }
    
    .dailyVerses.bibleVerse
    {
    	position:absolute;
    	top:30px;
    }

    Play with the padding-top and top values, to change the position of the verse and the text.

    Please let me know if this helps.

    Thread Starter cjamediadesign

    (@cjangela)

    Hi there,

    Thanks for the reply. I just play with the paddings and the position, but it’s not responsive. But is there a way to change the divs in the php file? I that can be change it would be really good.

    Now I need to change everything to make it responsive and it stills not perfect because the text is not always the same.

    please advice.

    Plugin Author dailyverses

    (@dailyverses)

    If you’re willing to modify the PHP file, you could add the following code (when using bible verse of the day):

    $splittedString = explode("<div class=\"dailyVerses bibleVerse\">", $bibleVerseOfTheDay_bibleVerse);
    if(count($splittedString) >= 2)
    {
    	$bibleVerseOfTheDay_bibleVerse = "<div class=\"dailyVerses bibleVerse\">" . $splittedString[1] . $splittedString[0];
    }

    Below this code fragment (line 70 or so):

    if($bibleVerseOfTheDay_bibleVerse == "")
    {
    	$bibleVerseOfTheDay_bibleVerse = get_default_verse($language);
    }

    If you use the random bible verse, you will have to add the code in another place with some minor changes. Please let me know if this is needed, and you need help.

    Thread Starter cjamediadesign

    (@cjangela)

    Yes, Thank you very much.

    It worked. Problem solved!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to change the sorting?’ is closed to new replies.