• 1st question:

    Is it possible to load different text or content at certain pages?

    For example:

    This is intro text at my index.php

    Some text.Some text.
    Some text.Some text…
    |Read more|

    When i click on read more,it leads me to services.php,
    I want to have different content at top of the page.
    Reason why,beacuse i want to have slider all the way to the top,and intro text under the slider.
    This is pretty complex issue,because intro text is already defined inside pages in admin.I do not know how to “mask” certain content,or how to manipulate with them properly.

    I want this at services.php

    Slider
    Full intro text

    2nd question

    Is it possible to put custom images inside widget title box.
    I want to keep widget title,and have custom images aligned left or right.

    And this is the nearest solution:

    .widget {
    
        text-align:left;
    
    }
    
    .widget h4.widgettitle {
    
    background-image: url("image.png");
    background-repeat:no-repeat;
    margin: 0 0 2.2em;
    padding: 12px;
    
    }

    It works very well,but thing is,with this solution is possible to have only 1 image in all widgets.

    thx in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • On the first question, if I understand you correctly, you want to have a different ‘excerpt’ show up on your home page than what is actually on the Post or Page that it links to in the ‘read more’ link.

    Yes, just use the Excerpt Box on that Page when you write/edit it – if you don’t see the Excerpt Box, click on “Screen Options” at the upper left, and check the box that says “Excerpt”.

    Whatever you put in the Excerpt Box will be used where the_excerpt() is called in your Theme (on index.php).

    On the second question, CSS is your best option, which you’re doing, but what you need is a way to select specific Widgets for styling.

    Look first in your source code to see if your widgets have *any* unique class or ID assigned to them to differentiate them, if so just add that class or style to your stylesheet.

    If not, you may need to modify your functions.php to create more (or unique) widget *areas*, then only use one widget in each area. In your functions.php file where you create these widget areas, you can add the class or ID to each widget area, instead of the widget itself. Then you can style it using something like this:

    #widgetarea_1 .widget h4.widgettitle {your styles here}

    You can learn more about adding widget areas here:

    http://codex.wordpress.org/Widgetizing_Themes

    Thread Starter davpetri20

    (@davpetri20)

    Thank you for your reply.
    I tried the first solution, and solved the problem. 🙂
    The second one is a more complex,but i will try it anyways.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘2 small problems, but two big headache,pls help’ is closed to new replies.