Using: graphene_before_post_content

  • ABCDiamond

    #8154

    I like the the options for using: graphene_before_post_content and graphene_before_page_content for placing different right aligned content at the top of Posts or Pages, instead of having the same content for both.

    However I seem to have a problem that I can’t work out. I can right align the content, but it does not allow the text at the left to be wrapped inline. The Post content starts AFTER the widget content, and not alongside it.

    I have used a plugin on another site to do this, and it uses this code <div class="wpInsert wpInsertInPostAd wpInsertRight" style="float: right; margin: 5px; padding: 0px;"> That plugin does not allow different content on pages to posts, so no use for my needs on this site.

    Using the graphene widget, I see this code:

    <div class="entry-content clearfix">
    <div class="graphene-dynamic-widget" id="graphene-dynamic-widget-graphene_before_post_content">
    <div id="text-37" class="sidebar-wrap clearfix widget_text">
    <div class="textwidget">
    <div align=right>

    It aligns right but not inline.

    If I add <div style="float: right; margin: 5px; padding: 0px;"> to the start of my widget code, then the graphen code shows this:

    <div class="entry-content clearfix">
    <div class="graphene-dynamic-widget" id="graphene-dynamic-widget-graphene_before_page_content">
    <div id="text-40" class="sidebar-wrap clearfix widget_text">
    <div class="textwidget"><div style="float: right; margin: 5px; padding: 0px;">

    But still not inline.

    What can I change to get these Graphene widgets to appear inline?

    Thanks

    Anonymous

    #40553

    Put code in between backtick (

    Code:
    `

    ) characters. It’s usually located above the Tab key on your keyboard.

    ABCDiamond

    #40554

    Thanks for that, I will remember for next time.

    Any idea about the changes I need to do to get the result with wrapped text ?

    Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

  • You must be logged in to reply to this topic.