Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #14503

    Hi,

    Thanks for the great theme. It’s the perfect solution for this business.

    I’m having trouble replacing the standard search from in the title container on http://www.jobsource.ie with a call to action button, just like the one on the theme demo site – http://www.kriesi.at/themedemo/?theme=flagship

    I tried commenting out the search form in searchfom.php and adding the following:

    <a class="big_button avia-button button" href="http://www.jobsource.ie/index.php/category/alljobs/">All Jobs</a>

    The result was the correct button style, but sticky to the right-hand side of the title container. No float, margin, or padding styling seems to move it.

    I appreciate any help you can offer. Thanks again.

    #83705

    Hi jobsource1,

    I’m not quite sure what you mean. As far as I know there isn’t anything on the demo page that can’t be done through the theme settings so you shouldn’t need to edit anything in the php files to get the exact same layout.

    Regards,

    Devin

    #83706

    I’m referring to the button here:

    I copied all the styling to create a duplicate css class, with this as the result:

    However, when the browser window is reduced in size, the button overlaps the text, like so:

    I’d like to know how to set up a button that allows for the changes in window size, like that in the demo. I can’t find any options in the theme settings for this:

    #83707

    Hi jobsource1,

    Let me make sure I follow you. All you want to do is replace the Plans and Pricing button shown in the demo with a Browse Vacancies button, correct? So instead of the copying the CSS and editing the template files themselves, all you need to is go to Flagship > Template Builder.

    If you haven’t already create a Frontpage template. The demo page you’re referring to is setup like this:

    Notice the area I’ve expanded that’s where the Plans and Pricing button is edited. You can edit the text under the “Callout Button Label”, you can also set the link as well as the “Welcome” message to the left.

    If you are using a Frontpage template, make sure the Text Area / Callout / Quotes element is listed then add your information.

    Once you’ve done this go to your Homepage and make sure the template is selected under Page Layout as well that your Homepage is set under Flagship > Theme Options. Also make sure, you remove the CSS you added to your custom.css and uncomment the search form since that should auto disappear when you create this template.

    Hope this helps!

    Regards,

    Mya

    #83708

    Hi,

    Thanks for your help with this. I followed the instructions and it worked perfectly for the homepage.

    I still have one problem though. I would like to have this button on every page, across the entire site, with the page title to the left-hand side. I have noticed that the Text Area/Callout/Quote section does not have a option for displaying the individual page’s title, and I’ve tried <?php echo get_the_title($ID); ?> with no success. Is there a way to implement this without having to create a template for each individual page?

    Thanks again for your help so far.

    #83709

    Try following – open up includes/helper-template-dynamic.php and replace:

    if(!empty($dynamic_text_button))
    {
    $button = "<a class='big_button avia-button button' href='".avia_get_link($element['saved_value'][0], 'dynamic_text_button_')."'>".$dynamic_text_button."</a>";
    $content_class= 'padding-active';
    }

    with:

    if(!empty($dynamic_text_button))
    {
    $button = "<a class='big_button avia-button button' href='".avia_get_link($element['saved_value'][0], 'dynamic_text_button_')."'>".$dynamic_text_button."</a>";
    $content_class= 'padding-active';
    }
    else
    {
    $button = "<a class='big_button avia-button button' href='".avia_get_link($element['saved_value'][0], 'dynamic_text_button_')."'>".get_the_title( get_the_ID() )."</a>";
    $content_class= 'padding-active';
    }

    However I’m not sure about the button/link target though because it doesn’t make much sense to link to the current entry….

    #83710

    Sorry, I think I could have been clearer with my question.

    What I’m trying to do is have the text part of the callout section – the part illustrated that reads “Employers” – to display the title of the current page. Is this possible?

    Thanks again for your help so far.

    #83711

    Hey!

    In this case replace:

    $output .= $dynamic_text.$button;

    with:

    $dynamic_text = get_the_title( get_the_ID() );
    $output .= $dynamic_text.$button;

    Best regards,

    Peter

    #83712

    Hi,

    I tried this and it has replaced the Welcome message on the homepage with the title of a random post. What I want is for just one template to display the page title in this section, but this change seems to effect all the dynamic templates.

    Thanks again for your continued help.

    #83713

    Hi!

    Yes, unfortunately it’s not easily possible to display the page title in a certain section without affecting all other dynamic templates which use this element too.

    Best regards,

    Peter

    #83714

    Thanks. As long as I know it can’t be implemented without doing some major work I’m satisfied.

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

The topic ‘Changing search form to button’ is closed to new replies.