Header Modification

resolved (17 posts) (3 voices)

  1. I tried and failed. Now I need to raise my hand in defeat. And before I ask.... Yes I used this article and tried every which way to no avail.... "http://mysitemyway.com/docs/index.php/Adding_stuff_to_the_header"

    Goal:
    Rotate images 970 x 130
    Increase Header Height to accommodate 130 height

    Plugin
    NextGEN Gallery
    Plugin code for test gallery [slideshow id=1 w=970 h=130]

    Theme
    Modular

    I would thoroughly enjoy anyone's help. Is it the Plugin ? Does any one recommended another ?
    Sincerely,
    Joe Johnson

    Posted 7 months ago #
  2. Ruderic
    Support

    Hello,

    Please provide us a link to your website, so we can take a look at the customizations that you applied.

    Posted 7 months ago #
  3. The Link: http://www.nonprofit-solutions.co/

    When I apply the [slideshow id=1 w=970 h=130]

    it just shows in the header region. No banner

    ?><div id="header">
    <div id="header_inner">
    [slideshow id=1 w=970 h=130]

    <?php mysite_header();

    Thank Joe Johnson

    Posted 7 months ago #
  4. Can I challenge you a bit more ? Since the website has different specific content on specific pages would it be possible to have different Header Galleries show up on different pages. ?

    In essence, custom images rotating on specific pages so that the images reflect the content of that page.

    Sincerely,
    Joe Johnson

    Posted 7 months ago #
  5. Elliott
    Support

    Hello nonprofitpartners,

    You cannot use a shortcode directly inside a PHP file. You have to use it with a do_shortcode() call as seen here, http://mysitemyway.com/docs/index.php/Adding_stuff_to_the_header.

    If your using the nextgen then you may also be interested in this article, http://mysitemyway.com/docs/index.php/NextGEN_Gallery.

    Posted 7 months ago #
  6. Elliot so close.

    2 small items.
    -1- How can I increase the header height to accommodate 130 pixel image
    -2- How do I reid of the "Modular" name

    Thank you
    Joe JOhnon

    Posted 7 months ago #
  7. Elliott
    Support

    You can upload your own logo in Dashboard -> your theme -> Homepage.

    To increase the header height navigate to Dashboard -> your theme -> General Settings -> Custom CSS and add this line,

    #header { height: 130px; }

    Posted 7 months ago #
  8. PS
    -2- Get rid of the "Modular" name in the background.

    Is it possible to specify or code that certain pages present certain galleries ?

    Thanks in advance Joe Johnson

    Posted 7 months ago #
  9. Found the height change in the CSS
    Looking for eh name ?Modular"

    Posted 7 months ago #
  10. I just changed the "Custom Image Logo" to a 1 x 1 pixel blue dot. works.

    Last curiosity

    Is it possible to specify or code that certain pages present certain galleries ?
    or
    Is this a enhancement modification request ?

    Sincerely,

    Posted 7 months ago #
  11. Elliott
    Support

    Do you mean you want your nextgen gallery in the header to display only in certain pages?

    If so then you would do something like this,

    <?php if (is_page(array('about-me', 'contact', 'portfolio')) { ?>
    insert your nextgen shortcode
    <?php } ?>

    Where "about-me", etc etc, are the page slugs that you want to display on.

    You can also use page ID's,

    <?php if (is_page(array(12, 13, 14)) { ?>
    insert your nextgen shortcode
    <?php } ?>
    Posted 7 months ago #
  12. Cool. I will try right now. Thank you

    Posted 7 months ago #
  13. When I put in the code you recommended I get the following statement

    Parse error: syntax error, unexpected '{' in /data/16/1/8/138/1823138/user/1976695/htdocs/nonprofit/wp-content/themes/modular/header.php on line 35

    Here is how I did it. It contains 2 elements: The echo shortcode and the page array

    <div>
    <?php echo do_shortcode("[slideshow id=1 w=970 h=130]"); ?>
    <?php if (is_page(array(13)) { ?>
    [slideshow id=2 w=970 h=130]
    <?php } ?>
    </div>

    Sincerely,
    Joe Johnson

    Posted 7 months ago #
  14. Elliott
    Support

    You were missing an extra parentheses but it actually needs to look like this,

    <div>
    <?php if (is_page(13)) {
    echo do_shortcode("[slideshow id=1 w=970 h=130]");
    } ?>
    </div>
    Posted 7 months ago #
  15. Thank you for your patience. Once I complete this site I will submit to the "User Showcase" End the end I will have it nicely "Pimped" out

    On the "if" page it double stacks the "Images" http://www.nonprofit-solutions.co/fundraising-solutions/

    Should I be building the codes as the following: "One for each page and Not Using the Echo <?php echo do_shortcode("[slideshow id=1 w=970 h=130]"); ?>
    --e.g.-- a page for 13 and once for 42
    <?php if (is_page(13)) {
    echo do_shortcode("[slideshow id=2 w=970 h=130]");
    } ?>
    <?php if (is_page(42)) {
    echo do_shortcode("[slideshow id=7 w=970 h=130]");
    } ?>

    -- OR--
    Should the "Echo" and the if work together ?

    <div>
    <?php echo do_shortcode("[slideshow id=1 w=970 h=130]"); ?>
    <?php if (is_page(13)) {
    echo do_shortcode("[slideshow id=2 w=970 h=130]");
    } ?>

    </div>

    THANK YOU !
    Joe JOhnson

    Posted 7 months ago #
  16. Elliott
    Support

    If you want it to just display on certain pages then the only place you need to insert the shortcode is within the if statement.

    <div>
    <?php if (is_page(array(13, 42)) {
    echo do_shortcode("[slideshow id=1 w=970 h=130]");
    } ?>
    </div>

    Otherwise it's going to display on every page.

    Posted 7 months ago #
  17. Thank you. Let me play around with code and try a few options. Sincerely,

    Posted 7 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme