dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Launching a page in a certain size WordPress

  1. #1
    Join Date
    Jul 2014
    Posts
    8

    Launching a page in a certain size WordPress

    Hi Guys,

    Im designing a site for a local radio station. - I've done the site in WordPress so other people can update it as well.

    The Issue is i need a way to put 2 links to a separate page say 300 by 500 for example for the listen now and the studio camera feed but with out all the normal stuff around it that you get in WordPress so no side bar and that.

    Don't mind if it is a separate page in html

    for example here is some of the code related to the button how do i force it to open in a new window in my own size either separate page or a WordPress page with out like the side bar and that.

    The Test site i have it running on is test.netdaddy.co.uk
    Code:
    <?php
    
    // Queue parent style followed by child/customized style
    add_action( 'wp_enqueue_scripts', 'func_enqueue_child_styles', 99);
    
    function func_enqueue_child_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
        wp_dequeue_style('sparkling-style');
        wp_enqueue_style( 'sparkling-style',
            get_stylesheet_directory_uri() . '/style.css',
            array('parent-style')
        );
    }
    
    /**
     * Call for action text and button displayed above content
     */
    function sparkling_call_for_action() {
      if ( is_front_page() && of_get_option( 'w2f_cfa_text' )!=''){
        echo '<div class="cfa">';
          echo '<div class="container">';
            echo '<div class="col-sm-4">';
              echo '<span class="cfa-text">'. of_get_option( 'w2f_cfa_text' ).'</span>';
              echo '</div>';
              echo '<div class="col-sm-8">';
              echo '<a class="btn btn-lg cfa-button" href="'. of_get_option( 'w2f_cfa_link' ). '">'. of_get_option( 'w2f_cfa_button' ). '</a>';
              echo '<a class="btn btn-lg cfa-button" href="www.netdaddy.co.uk/radiotircoed/listenlive.html">Listen Live</a>';
              echo '</div>';
          echo '</div>';
        echo '</div>';
      }
    }
    Last edited by jedaisoul; 06-13-2016 at 05:24 AM. Reason: code tags added

  2. #2
    Join Date
    Aug 2015
    Posts
    5
    sorry for asking it here
    guys, how do u think is it possible to get a job as blogger?
    and how?

  3. #3
    Join Date
    Jan 2016
    Posts
    227
    You can use pop up window when they click either listen now and the studio camera button. You can use this using jquery.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles