Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1272839

    Hi,

    How can I achieve this widget(image) in the php code below?

    More specifically, how do I select h2 and h3 tags in the php code?

    Capture

    $args = array (
    					'name' => 'Displayed Everywhere',
    					'id' => 'av_everywhere',
    					'description' => '',
    					'class' => '',
    					'before_widget' => '<section class="mobile_toc clearfix avia_auto_toc">',
    					'after_widget' => '<span class="seperator extralight-border"></span></section>',
    					'before_title' => '',
    					'after_title' => '',
    					'widget_id' => 'avia_auto_toc_custom',
    					'widget_name' => 'Enfold Child Table of Contents2',
    					);
    
    				$instance = array (
    					'title' => 'Contents',
    					'exclude' => '',
    					'style' => '',
    					'level' => 'h3',
    					'single_only' => 1,
    					'indent' => 0,
    					'smoothscroll' => 1,
    					);
    
    				$toc = new avia_auto_toc;
    				$toc->widget($args, $instance);
    • This topic was modified 3 years, 10 months ago by Microserve_.
    #1273325

    Hey Microserve_,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Victoria

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.