ThemeShaper Forums » Acamas

[closed]

Images in Featured Post section

(5 posts)

Tags:

  1. ecrissman
    Member

    I would like to purchase the Acamas theme, but I have a few questions I was hoping could be answered.
    1. If an image is set as the first item in a post, can that be displayed in the featured post section on the homepage? Would it resize automatically or is there a way to do that?
    2. I would like to create a content box that spans the two right columns on the homepage, just above them. Is it possible to use a widget to do that and then just style it to a width that equals both side columns combined. ie if the side columns are 200px ea. can a box be placed above them that is 400px. without having to edit the functions.php file?

    Thanks,
    Beautiful theme. I can't wait to use it.

    Posted 4 years ago #
  2. Hey,

    everything can be done :-) .. and it most of all cases it needs to be done using the functions.php .. and .. no, you can't do that content box without using the functions.php.

    If you're able to write your own PHP code, we could provide the necessary information plus advises and a little guidance.

    If not, you could ask one of the guys listed under Commercial Support & Services

    Cheers,

    Chris

    Posted 4 years ago #
  3. jakeknotts
    Member

    Hi Chris,

    Could you give a little guidance on how to replace the featured content box with a picture? If at all possible, I would like to have a few pictures in a basic slide show format.

    I have some experience with similar code using a graphpaperpress template, so I think I will be able to figure it out with a few pointers.

    Thanks!

    Posted 4 years ago #
  4. Hi,

    that depends on the script you would like to use for the slider.

    Basically you reduce the acamas_featured_content() to:

    function acamas_featured_content() {
        if (is_home()) { ?>
    
            <div id="home-insert">
    
                <!-- enter your code here -->
    
            </div><!-- #home-insert -->
    
        <?php }
    }
    add_action('thematic_belowheader','acamas_featured_content');

    And you need to add an action containing the needed script to wp_head.

    This is an example I'm using for one of my new projects (using the S3 slider):

    <div id="slider">
            <ul id="sliderContent">
                <li class="sliderImage">
                    <img src="<?php thm_bloginfo('stylesheet_directory', TRUE) ?>/images/underconstruction.jpg" alt="Programming Thematic4You" />
                    <span class="top"><strong>Programming Thematic4You</strong><br />Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</span></li>
                <li class="sliderImage">
                    <img src="<?php thm_bloginfo('stylesheet_directory', TRUE) ?>/images/underconstruction.jpg" alt="Explaining Thematic4You" />
                    <span class="top"><strong>Explaining Thematic4You</strong><br />At vero eos et accusam et justo duo dolores et ea rebum.</span></li>
                <li class="sliderImage">
                    <img src="<?php thm_bloginfo('stylesheet_directory', TRUE) ?>/images/underconstruction.jpg" alt="Inspiring Thematic4You" />
                    <span class="top"><strong>Inspiring Thematic4You</strong><br />Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</span></li>
                <li class="sliderImage">
                    <img src="<?php thm_bloginfo('stylesheet_directory', TRUE) ?>/images/underconstruction.jpg" alt="Designing Thematic4You" />
                    <span class="top"><strong>Designing Thematic4You</strong><br />Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</span></li>
                <li class="sliderImage">
                    <img src="<?php thm_bloginfo('stylesheet_directory', TRUE) ?>/images/underconstruction.jpg" alt="Designing Thematic4You" />
                    <span class="top"><strong>Designing Thematic4You</strong><br />At vero eos et accusam et justo duo dolores et ea rebum.</span></li>
            </ul>
        </div>

    Btw.: thm_bloginfo requires a current SVN copy of thematic. And I'm not using the trick with the empty DIV closing after the last image causing a XHTML error. Instead I'm using a 1px image with no text after as the last

  5. which won't show up.

    Let me know a slider / script in case you need more help.

    Chris

Posted 4 years ago #
  • em hr
    Moderator

    FYI: moving forward the function thm_bloginfo() has been deprecated using it will cause an error. Using get_bloginfo() will work fine with minor adjustments in it's place.

    Posted 3 years ago #

  • RSS feed for this topic

    Topic Closed

    This topic has been closed to new replies.