We’re currently experiencing a high volume of inquiries and our response time could be up to 2 days. We apologize for the delay, and thank you for your patience. Our available time: 2 AM - 1 PM (Monday - Friday) (UTC+0 Timezone).

Okay
  Public Ticket #2502873
Sidebar
Closed

Comments

  • proprangers started the conversation

    Can I add a TEXT widget on the sidebar of a property or a project page ? If there is no provision in the theme then how can I do it ? I need to insert an image (  an advertisement )

  •  2,475
    Support replied

    Hi,

    You can add to your layout.

    {!! dynamic_sidebar('primary_sidebar') !!}

    Then you can drag Text widget into Primary sidebar, it will be display on theme.

  • proprangers replied

    Where is my layout ? Which code file I need to update ? The primary sidebar shows only on the blogs page. Kindly elaborate your advice.

  •  2,475
    Support replied

    Where you want to display it?

    If you want to display it in property, you need to add code into platform/themes/flex-home/views/property.blade.php, for project, it's platform/themes/flex-home/views/project.blade.php

  • proprangers replied

    Yes I want to have a sidebar in the property and project page. Let me try and check if I can do it .

  • proprangers replied

    Sorry dear as I am just learning coding I am unable to do what you suggested. Kindly do and send me the code file. When I did  , it messed up the page.

  •  2,475
    Support replied

    Hi,

    Where you want to add a sidebar widget?

    If you want to display sidebar widget after enquiry form, you can do like this.

    9169206310.png

    Then it will be shown like this:

    1981189897.png

    Then add Text widget into Primary sidebar like this:

    7787843768.png


  •  2,475
    Support replied

    You can register a new sidebar by adding bellow code into platform/themes/flex-home/functions/functions.php

    register_sidebar([    
        'id'          => 'custom_sidebar',    
        'name'        => 'Custom sidebar',    
        'description' => 'Custom sidebar for Flex Home theme',
    ]);

    Then change

    {!! dynamic_sidebar('primary_sidebar') !!}

    to

    {!! dynamic_sidebar('custom_sidebar') !!}

    then you can go to Admin -> Appearance -> Widgets to add Text widget into Custom sidebar.

    6619048094.png


  •  2,475
    Support replied

    That is all I can help.

    Keep in mind that as support policy https://codecanyon.net/page/item_support_policy, we won't support on code customization.

  • proprangers replied

    Yes I understand. What If I just want to add an image ? If I add the whole sidebar it actually messes up the whole page.

    What I need is :

    There is no sidebar in the project and property page though we are displaying vendor contact and contact form in that location. I need to add one image ( square image ) also in the property and project page. If I add the code ( as per your suggestion ) it will add the whole PRIMARY sidebar which already has 2 components. What is the solution ?

  •  2,475
    Support replied

    Hi,

    Please check my reply 7 mins ago. We can add a new sidebar for project/page.