Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1252802
    jdiaz1302
    Participant

    Hi everyone, I was wondering how can I go on the following, I need to create a section like this one http://prntscr.com/d5sxzv

    And I would like to place this below the header and above the content but I was wondering how can I proceed, for example, creating a php file with the code of this section and then include it maybe in the wp-header or if I should create a new template, but I need it to be inside a container.

    Thanks in advance!

    #1252920
    Rupok
    Member

    Hi there,

    You can place a section and use the Text element to place them. “Feature Box” has similar look so you can utilize the element.

    Cheers!

    #1260443
    jdiaz1302
    Participant

    Hey there Rupok, thank you for your reply.
    Unfortunately, that’s not what I want to do, I need is a dynamic section there, because I’m going to use it with WooCommerce to create the my account dashboard, that’s why I was trying to understand how it worked.

    What I did yesterday was to updat X to the most recent version but I don’t what happened with the templates of WooCommerce?

    ( This was with the version that still included template folder of woocommerce)And I’ve tried to use the Container – Header – Footer – Blank 1 template to create the dashboard but when I add my section with just HTML and CSS the WooCommerce stuff dissapear and I just see the white container.

    Is it possible that you can walk me through the theme structure, just let me know which files do I need to edit to create the my account section and to show the WooCommerce my account inside the white container.

    I hope that you don’t misunderstand this, I just need to know which files do I need to edit to create the woocommerce my account template.

    Thanks again for your help!

    #1260572
    Friech
    Moderator

    Hi There,

    While that is outside the scope of support, I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here.

    Copy the No Container | Header, Footer template on your child theme, that would be the template-blank-4.php file of your stack. Add the line below just underneath the line: <?php get_header(); ?>

    <?php x_get_view( '{stack}', '_content', 'mysection' ); ?>

    Replace the {stack} with the stack you’re using. You need to wrap this on a if statement if you need this to show only on specific page/s.

    Then on the same directory as the template-blank-4.php on your child theme, create a file named _content-mysection.php

    That would be the new template where you write your code for creating a dynamic block.

    Further customizations from here would be getting into custom development, which is outside the scope of support we can offer. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities.

    Hope it helps, Cheers!

    #1264058
    jdiaz1302
    Participant

    Hi, I complete understand that, as I mentioned I just need to know the structure because I can’t make it work 🙁

    For example, as per your docs, I have a file in x-child, named template-customtemp.php then I have a file with the same name in the stack I’m using, which also contains a file named _content-customsec.php and in the template file I’ve added the following line:
    <?php x_get_view( '{stack}', '_content', 'customsec' ); ?>

    But now that I’ve added for example a text inside a p tag the customsec page, in wp says that is reading my custom template (template-customtemp)(which is woocomercer my account page), but the page is not displaying the text (with the p tag from the custom section), and not even that section if I try to add it. I don’t know if it’s worth to mention but the content file just had <p>hello</p>, do I have to declare somenthing thete?

    Thanks in advance.

    #1264471
    Rad
    Moderator

    Hi there,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

  • <script> jQuery(function($){ $("#no-reply-1252802 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>