Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Integrate Enfold with WP Toolset Views #496420

    Okey thank you. That is for the framework_slug.

    How about the other two questions?

    2. api_mode
    (‘api_mode’ is a mandatory string that states the way that the framework gets the value for each of its options.
    Some frameworks have a dedicated function for this
    (so they should pass ‘function’ here as the value).
    Some other frameworks just store their data in a serialized array in the WordPress options, so they should pass ‘option’ here as the value.
    So, the value here can either ‘function’ or ‘option’)

    3. api_handler
    (‘api_handler’ is a mandatory string that complements the api_mode one.
    It should contain the relevant data on the selected mode.
    In case the framework has a dedicated function (‘function’ in ‘api_mode’) to get option values,
    api_handler should be that function’s name (example: ot_get_option).
    If the framework just accesses a serialized array stored as a WordPress option (‘option’ in ‘api_mode’),
    the key of that option should be passed here.)

    in reply to: How to remove header on all pages? #432066

    That is not a sitewide solution? That is only for each page and it won’t affect custom post types and blog posts. I would rather see a sitewide solution. Is this possible?

    in reply to: bug in contact form #430266

    I have the same bug. Sometimes it gets sent to the junkmail. But nothing in the mail except
    {email_body}
    {email_title}

    and similar tags

    IQONOMY I have started a topic at WP-types aswell and I have a workaround solution

    https://wp-types.com/forums/topic/content-template-doesnt-work-for-single-page-with-enfold/

    “Please see it working, the issue has been resolved.

    Actually, your theme was using a custom method/function to loop through the post content, while by-default Views and Content Template rely on WP’s default ‘the_content’ function.

    So in such situations, Views has a quite nice option to debug your theme and find that custom method in use by your theme. And Views requires to input that function name under Views -> Settings -> “Theme support for Content Templates” – so your content templates can be rendered through your theme.

    I have updated this settings. Your theme uses ‘require’ function to render the post content.”

    So set the theme support for content templates to the required settings and then use my CSS code to remove the styling provided from Enfold Custom template.

    Although I would rather remove it from the loop altogether.

    So I fixed it with css

    #top.single-ps-products .fullsize .template-blog .post .entry-content-wrapper,
    #top.single-ps-products .fullsize .template-blog .post .entry-content-wrapper > * { max-width: 100%; }
    #top.single-ps-products .entry-content-header,
    #top.single-ps-products .blog-meta,
    #top.single-ps-products .av-share-box { display: none !important; }

    But this is not the most efficient way of doing it, I want to remove it from the loop so it doesn’t even render in the DOM. Is this possible?

    Kind regards,

    Tobias

    Maybe I can clear things up. See the following link http://pharmasys.adser.se/products/pharmaflex-swivel-elbow/

    There you see
    .blog-meta – with the small image

    .post-title entry-title – with the title and metainformation

    Thenk you see the post content I want to show and nothing else which is the picture a table and a title

    .av-share-box with the social sharing function

    So what I want to do is to remove .blog-meta & .post-title entry-title & .av-share-box

    But I just want it removed on certain custom post types that I have created (I still want it left intact on regular blog posts)

    Okey, I might be a bit unclear. But basically I don’t want the avia layout builder. Neither do I want the template for custom post types that Enfold applies to everything.

    I just want to be able to use my own template without Enfolds standard custom post template interferes.

    How can I do that?

    Hi, sorry for that. I tried some changes on my own.

    Is the plugin creating custom post types and your trying to load a custom template for the post type?
    – Yes

    But I have found a partial solution to my problem.

    I am currently using the following codesnippet in order to use the avia layout builder. But I am not using it, I only use it to override the regular custom post template (blog template). But the problem is that I have to actively go in and change on each new custom post I make so that it uses the Advanced Layout Builder.

    This is not a solution I am looking for, I am looking for something similar that overrides the custom post template completely so I can use my own template.

    http://pharmasys.adser.se/products/pharmaflex-swivel-elbow/
    This link is a custom post type of mine but where I have not gone into the editor and changed to Advanced Layout Builder (so it uses the regular custom post type template from Enfold)

    http://pharmasys.adser.se/products/hme-10/
    This link uses my own custom post type template because I have edited it and turned on Advanced Layout Builder (although I have not added any content with layout builder)

    I want the last result but without having to go into each new post and change it into advanced layout builder as all my custom post types are being created through a form.

    If you could help me with this I would be forever grateful!

    add_filter(‘avf_builder_boxes’, ‘add_builder_to_posttype’);

    function add_builder_to_posttype($metabox)
    {
    foreach($metabox as &$meta)
    {
    if($meta[‘id’] == ‘avia_builder’ || $meta[‘id’] == ‘layout’)
    {
    $meta[‘page’][] = ‘ps-products’; /*instead add the name of the custom post type here*/
    }
    }

    return $metabox;
    }

    in reply to: Main Header #401352

    Would it be possible to move the widget to the inner-container instead? After the logo? And also how would I go about removing the “1” that appears?

    Look below for the html code.
    —————————————————————————————-
    <div id=”header_main” class=”container_wrap container_wrap_logo”>
    ————————————————————————————————————————————
    !!!!!Here it is now!!!!
    ————————————————————————————————————————————
    <div id=”text-2″ class=”widget clearfix widget_text”><h3 class=”widgettitle”>Testpurpose</h3> <div class=”textwidget”>Testing for purpose</div>
    </div>1
    ————————————————————————————————————————————
    <div class=”container”>

    <div class=”inner-container”>
    <strong class=”logo bg-logo”>Social Shanghai
    ——————————————————————
    !!!!! I WANT IT HERE INSTEAD!!!!
    ——————————————————————

    in reply to: Fullwidth sub menu questions #356887

    Hi,

    That didn’t work unfortunately, is there any other way?

    I also would like to know if and how to add the fullwidth submenu within a color section?

    Because I want the first section to hold the menu with a big logo that will be vertical aligned in the middle of the color section and when scrolling down the menu will stick and follow along the page.

    in reply to: Scrolling Link Broken #336353

    Hi sorry for taking your time, but I found the problem. It is a conflict with the id #next that makes it missbehave. I don’t know if it is from the theme Enfold or another plugin, but might be worth taking a look at.

    Thanks for the support!

    in reply to: Scrolling Link Broken #336199

    Sorry I removed it, on the first page on top is something called testlink for next section. That one is broken.

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